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

Uploaded Source

Built Distribution

yatbaf-0.8.0-py3-none-any.whl (209.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yatbaf-0.8.0.tar.gz
Algorithm Hash digest
SHA256 95012b6de2a8c4296156897380e54e41a6e40eb2fd1c897ab7056b1d5d43841a
MD5 671096520028fc681087198b401f28f0
BLAKE2b-256 012c82d7147363208529aad2e5ad75e07f38740e323f3ebc297d5cc3ad7dbeb6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yatbaf-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69e5c7ec8fa5b10e288ca6c02c7f59dba3995bcabe2355f73a428964c0d3d43c
MD5 fed1f0f8086f8df537a2337834c58cbc
BLAKE2b-256 91bf29c9e90170cad4848914e1b760b0e25704ed97d50fd379bd9ce3101ec321

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