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

Uploaded Source

Built Distribution

yatbaf-0.10.0-py3-none-any.whl (225.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yatbaf-0.10.0.tar.gz
Algorithm Hash digest
SHA256 643c51401cb0bb1e78779e4297fa4f156518df92492a60ebbf86769d1cd3a195
MD5 aa6564130fd56d178ab9179b17a7abff
BLAKE2b-256 1d7446fa757b6e4473001aec4db512eaeab8bfac4596c408997d1c0b42a59606

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yatbaf-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19e3d116d75a4ef29c7fc296f1e620c74849e4de356b127abfc9eb2f3de9361f
MD5 3334f928625e3d779684f345706f5e65
BLAKE2b-256 3137013d908924c39f32c37092ff18c12e7853bab67c00f64adee798feda7581

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