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
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
yatbaf-0.9.1-py3-none-any.whl
(221.8 kB
view hashes)