Skip to main content

Telegram Bot framework

Project description

yatbaf

Asynchronous Telegram Bot API framework.

Requirements

Python 3.11+

Installation

$ pip install yatbaf

Simple echo bot

from yatbaf import Bot, on_message


@on_message
async def echo(message):
    await message.answer(message.text)


Bot("<REPLACE-WITH-YOUR-TOKEN>", [echo]).run()

License

MIT

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

yatbaf-0.4.1.tar.gz (111.5 kB view details)

Uploaded Source

Built Distribution

yatbaf-0.4.1-py3-none-any.whl (190.2 kB view details)

Uploaded Python 3

File details

Details for the file yatbaf-0.4.1.tar.gz.

File metadata

  • Download URL: yatbaf-0.4.1.tar.gz
  • Upload date:
  • Size: 111.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for yatbaf-0.4.1.tar.gz
Algorithm Hash digest
SHA256 95df3cff333bf08eb51c59192f829922d9208597b08e782d9678d4aaac5d5ffd
MD5 1aecaa8f521efc6404a5f898842e16db
BLAKE2b-256 62e913aa200986c9d8a8fd4f17194ea037c5d6255b56dec8459536ad0e3af2d7

See more details on using hashes here.

File details

Details for the file yatbaf-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: yatbaf-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 190.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for yatbaf-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39904ba499ab837c1433f2b78617d6a077efcd2291518f0cf46de6dd198dfea1
MD5 59b429da0c97f15fd763981c09c254ef
BLAKE2b-256 ed3fb160a9f3dd4ee4afdf6568527f6052102560c947c000b3e8cca1990c5d56

See more details on using hashes here.

Supported by

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