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.5.1.tar.gz (112.4 kB view details)

Uploaded Source

Built Distribution

yatbaf-0.5.1-py3-none-any.whl (191.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yatbaf-0.5.1.tar.gz
Algorithm Hash digest
SHA256 a342599c98d825159fee2290fa02e88196d4fd0ab34a5177909350fb5f8f0461
MD5 6269a8b1ff819eee78606860846e7194
BLAKE2b-256 05c95744d5411a31f93707e3f31828aeeec69c343a91ac7a7ead4c4c32fbf6eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yatbaf-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 191.1 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64d7193b7996fbe01b93583db7e62ed071e9c31620bff1b180b7e4db4bb88f43
MD5 c9efa79df94e5a6754fdad92d2beae75
BLAKE2b-256 8960c224d429367c6c9e6c67d9846fe58e1ccd50cdfa257afdeb336bcc10be10

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