ATLib — Advanced Telegram Bot Library
Version 1.0.0 · Official Telegram Bot API · Async · Production-oriented
ATLib is a modular asynchronous Python framework for building Telegram bots using the official Telegram Bot API. It does not depend on user account sessions or unofficial clients.
Features
- Async HTTP transport with connection pooling, rate limiting and retries
- Full update processing (long polling)
- Router / handler system with composable filters
- Inline & reply keyboard builders (including documented style fields)
- Custom (Premium) emoji entities with correct UTF-16 offsets
- Rich message builders (Bot API 10.1+)
- Finite State Machine with Memory and SQLite storage
- Mini App
initDataHMAC validation - Typed configuration, token redaction, structured logging
- CLI (
atlib doctor,atlib init, …) - Dual-language docs (English + Persian)
Installation
pip install atlib-telegram
# or from source
pip install .
Optional extras:
pip install "atlib-telegram[redis,postgres,dotenv,asgi]"
Quick start
import os
from atlib import Application, Command
app = Application(token=os.environ["BOT_TOKEN"])
@app.router.message(Command("start"))
async def start(ctx):
await ctx.answer("Hello from ATLib!")
if __name__ == "__main__":
app.run_polling()
API compatibility
Verified against Telegram Bot API 10.3 (August 2026 changelog).
See API_COVERAGE.md for the method matrix.
Documentation
| Document | Description |
|---|---|
| QUICKSTART | First bot |
| HANDLERS | Routers & handlers |
| FILTERS | Filters |
| FSM | State machine |
| KEYBOARDS | Keyboards |
| CUSTOM_EMOJI | Premium emoji |
| SECURITY | Security notes |
| README.fa.md | مستندات فارسی |
License
MIT
Metadata
Release files for atlib-telegram 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| atlib_telegram-1.0.1.tar.gz | 34.1 kB | With provenance | Details for atlib_telegram-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| atlib_telegram-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for atlib_telegram-1.0.1-py3-none-any.whl |
Total release size: 79.9 kB
Release files / atlib_telegram-1.0.1.tar.gz
| Download URL | atlib_telegram-1.0.1.tar.gz |
|---|---|
| Size | 34.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ce50213282e76de9fcf537628ba6b076ff81139920142e35a7c624ae31d8fdb
|
|
BLAKE2b-256 checksum How to use checksums |
ce70b656c52e2e5e375f1ef454fa4dd70438aa2f19d1f9eff0e91266d1a8175b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / atlib_telegram-1.0.1-py3-none-any.whl
| Download URL | atlib_telegram-1.0.1-py3-none-any.whl |
|---|---|
| Size | 45.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88968477ab0b7285856de1dc6a6f42e1dccbdcee1093a980fef990b86a97ab57
|
|
BLAKE2b-256 checksum How to use checksums |
bcf9f37c94fbc76dc0cfecf27e1b91ad504084d75b3d57048938185765a5a73e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for atlib-telegram 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for atlib_telegram-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.