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.12.0.tar.gz
(203.8 kB
view details)
Built Distribution
yatbaf-0.12.0-py3-none-any.whl
(240.3 kB
view details)
File details
Details for the file yatbaf-0.12.0.tar.gz
.
File metadata
- Download URL: yatbaf-0.12.0.tar.gz
- Upload date:
- Size: 203.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108b370d216dfacb0a42b02cdfb58613f9fd14cd45428d7b152429542a7670af |
|
MD5 | cd57863dbc03bdb23d609a87c3d459b2 |
|
BLAKE2b-256 | 292ef20720833fc99fcbdae14cd8144348b131a9d894825cbb3144b9435f6038 |
File details
Details for the file yatbaf-0.12.0-py3-none-any.whl
.
File metadata
- Download URL: yatbaf-0.12.0-py3-none-any.whl
- Upload date:
- Size: 240.3 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 | 9338e899a6f591f0d94395525d82e8060929da90f55b8377c564b3f026a13d47 |
|
MD5 | d0571890042f371e3552f2514a79318e |
|
BLAKE2b-256 | c98db4c0ba1fb9a0d1a5a7cf252fd012763f3fdb2a1facce5b1af03072313d4c |