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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: yatbaf-0.9.0.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.0.tar.gz
Algorithm Hash digest
SHA256 4005d76f998e54be839dd876f33742b8c32c8ec27ccfa53405690463ba92f41a
MD5 a50649469edd548d64ff19b989c00a4d
BLAKE2b-256 a99f887e5b16de0adeae63e13804a8d50a16a30487d0bf5176771fedc3021d30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yatbaf-0.9.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9db5891d9983c7293e4df2c84db70aead2d8621adfbdda6f691539ef7afe3cb1
MD5 43c868a9d6dc74ad8f7e8151b08defa0
BLAKE2b-256 8afc8e933ca4d70fc86ee86c9d9f8eff52e644d0843f9afd0ce9356a65ef3321

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