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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: yatbaf-0.4.0.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.0.tar.gz
Algorithm Hash digest
SHA256 ba9a6016e143065350905bf8617ad17bba767bc97298e280c1713b28c03e6db9
MD5 c8605a3dbaf7121d1518ed38475db5e7
BLAKE2b-256 363a9d0ea5eb96b01cb2fba4bb75fbaaec4130f7b7c5976ee6ad5494a1c18e17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yatbaf-0.4.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27596138d31cf3c799576fccd6fc2637ef50dea519102c09d47fd1e2343f9158
MD5 e15a97bf8f5e10daa1e34140042d05c9
BLAKE2b-256 d14ec76bd0fb4e432bd6780e1a005a1f395c95faa8175f2ef24beea48fbb06a8

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