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.11.0.tar.gz
(196.7 kB
view details)
Built Distribution
yatbaf-0.11.0-py3-none-any.whl
(229.8 kB
view details)
File details
Details for the file yatbaf-0.11.0.tar.gz
.
File metadata
- Download URL: yatbaf-0.11.0.tar.gz
- Upload date:
- Size: 196.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca1dc8681f541e0af423980f5810359837e4694c8d331b5282d12a9035785692 |
|
MD5 | 939b31c8c401434741aae1d91498a8a1 |
|
BLAKE2b-256 | 361e2f8c381bcedf7ed44252064e90ddca6915c13749d89f36a1a889b8660c58 |
File details
Details for the file yatbaf-0.11.0-py3-none-any.whl
.
File metadata
- Download URL: yatbaf-0.11.0-py3-none-any.whl
- Upload date:
- Size: 229.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38d43448fbc1a339ed04a5b4e5e6f18de1ced4738fd19a36a31274dd0c652b8b |
|
MD5 | bd1e60350a0b3e358d2b3ed15e6756b4 |
|
BLAKE2b-256 | 46ec4d3ddad11ff07a729d6d3b3930717fce5ccd2fca24b3e781b306332fa6d1 |