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.0.tar.gz (2.3 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.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nios_bot-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 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.0.tar.gz
Algorithm Hash digest
SHA256 b25449bd4abf34b7a5cafb5b795df13283a172f9fb3521a13e2aeba04a644281
MD5 159d6c19425d8a3ae5e220855277d68b
BLAKE2b-256 dd6a8f8ac9f48078f5b6a7a99dc4ecf13de44ab2d45640dd3b47c9557e0a7cf6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nios_bot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 031975fbabd5c03dc327954e49cf72cd376fe1aa9b8af42c319a9ccea9c2439d
MD5 1ca816fb93327a7567e3f3cd29589fb7
BLAKE2b-256 2ddb30c30941a509bf8c6890e86b6529772e96c10033fa9a6d721bf0af79788c

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