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.2.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.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nios_bot-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 bbeaf5573c127af48b60ae5a790aa4821e8a35abdec3f2bfe27395f4e7d33a40
MD5 a94586f1f4f7bb6ec6eebda0ac4253e5
BLAKE2b-256 8f29574dc432ebde0aa7f0931ac46f924f8aa20989b4d47e4c2c1729703b4ee6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nios_bot-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 be300b6fed71024a200ab94337e89db18b6821604624689c721acb5c035ca23a
MD5 378236b4b32398ac2d05b95292e179e4
BLAKE2b-256 dfe940494991198df561b925356cbfe8e79910b666d0e944ad0ca6dc54681296

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