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

import yatbaf.filters as f
from yatbaf import Bot, on_message
from yatbaf.types import Message


@on_message(filters=[f.text])
async def echo(message: Message) -> None:
    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.9.1.tar.gz (191.3 kB view details)

Uploaded Source

Built Distribution

yatbaf-0.9.1-py3-none-any.whl (221.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yatbaf-0.9.1.tar.gz
  • Upload date:
  • Size: 191.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for yatbaf-0.9.1.tar.gz
Algorithm Hash digest
SHA256 e1906b48cd37e18317b8a4544310b57879397dd23da0e999d33a394fc1a92fc2
MD5 e5c1ecc9ce478bc8ea7a9ed2a7d27870
BLAKE2b-256 52066b6e99b630cf99858f98adfe75b0963f97edb6e0a3c22ce69ebd990437d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yatbaf-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 221.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for yatbaf-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8cf4bf73cdf6d0ddfd0e1018d6d4303a99f8d084318a12d23c643fca7f98b551
MD5 b36b3f7854d478d1e287c72072071eb4
BLAKE2b-256 0bc3116cebd5afc3956ba2d4496238e1ba9db7e316f5fe0f8ad1e9afe8dc8a8d

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