Skip to main content

Асинхронный клиент для Bot API на базе httpx

Project description

NiosBot API

Асинхронная библиотека для работы с API ботов.

Установка

pip install nios-bot

Использование

import asyncio
from nios_bot import NiosBot

bot = NiosBot(token="your_token_here")

@bot.message_handler()
async def echo(message):
    chat_id = message["chat"]["id"]
    text = message.get("text", "")
    await bot.send_message(chat_id=chat_id, text=f"Вы сказали: {text}")

async def main():
    await bot.start_polling()

if __name__ == "__main__":
    asyncio.run(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nios_bot-0.1.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nios_bot-0.1.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file nios_bot-0.1.3.tar.gz.

File metadata

  • Download URL: nios_bot-0.1.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for nios_bot-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5fb950fa5395ce8bc5e2ecf50785dae3c034cfa2d5e777ff3228585859e64002
MD5 4a482526798b4797c9219c3d9849207d
BLAKE2b-256 9a921cf7dff8ac0bcab37c112e3dbc608488be262ef4e6d05b1ddc9a026ad4a2

See more details on using hashes here.

File details

Details for the file nios_bot-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: nios_bot-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for nios_bot-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 43ae91bc324e62503820c96a27943ec52aa66887349bbf2acdcfad528e7690b5
MD5 a122d025f21797f10fa5ab253f976708
BLAKE2b-256 db1111b4c2a2aedeb5cda31caa934b3a943274a2d79873286a97dc6eebd19c19

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page