Telegram MTProto API Framework for Python
Homepage
•
Documentation
•
News
•
Chat
Tobigram
Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
Tobigram is an actively maintained Pyrogram fork for Python designed as a drop-in replacement for Pyrogram. Tobigram provides support for the latest Telegram features including Gifts, Stories, Topics, Business Accounts, and more.
from pyrogram import Client, filters
app = Client("my_account")
@app.on_message(filters.private)
async def hello(client, message):
await message.reply("Hello from Tobigram!")
app.run()
Tobigram is a modern, elegant and asynchronous MTProto API framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot identity (bot API alternative) using Python.
Key Features
- Ready: Install Tobigram with
piporuvand start building your applications right away. - Drop-in Replacement: 100% compatible with Pyrogram codebases — keep your existing imports with zero migration hassle.
- Fast: Boosted up by WarpCrypto, a high-performance cryptography library written in Rust.
- Telegram Layer 229+ Native: First-class support for Star Gifts, Stories, Forum Topics, Business Connections, and Reaction effects.
- High-Speed Transfers: Parallel DC chunk streaming with adaptive rate limiting and session pooling.
- Advanced Proxy Support: Built-in support for MTProxy (EE Fake-TLS with SNI), MTProto Web Proxy (WebSocket/TLS 1.3), and SOCKS5/HTTP.
- Modern Python: Fully compatible with Python 3.10 through Python 3.14+.
- Type-hinted: Comprehensive type hints across all methods and types for excellent editor autocomplete.
- Async: Fully asynchronous with native async/await for peak concurrency and responsiveness.
- Powerful: Full access to Telegram's MTProto API to execute any official client action and more.
Installing
Stable version
pip install tobigram
Using uv (Recommended)
uv add tobigram
Dev version
pip install https://github.com/TobiBotz/Tobigram/archive/dev.zip --force-reinstall
Optional dependencies
pip install tobigram[fast] # uvloop for better performance
Resources
- Check out the docs to learn more about Tobigram, get started right away and discover more in-depth material for building your client applications.
- Join the official channel and stay tuned for news, updates and announcements.
- Join the official chat to communicate with people.
Special Thanks
- Dan The original creator of Pyrogram.
- Kurimuzon Akuma Creator and maintainer of Kurigram.
- Riajul Creator of Wzgram and author of WarpCrypto.
Metadata
Release files for tobigram 2.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tobigram-2.5.0.tar.gz | 2.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tobigram-2.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 MB
Release files / tobigram-2.5.0.tar.gz
| Download URL | tobigram-2.5.0.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f67acd4806e379d4e51067b52c1f3e57e48791ade04661fdc13730471bfa522
|
|
BLAKE2b-256 checksum How to use checksums |
10fc878ae1a36457477aa2a7a567d041295c35a7a88ba6ce9276ec90cdfa0410
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / tobigram-2.5.0-py3-none-any.whl
| Download URL | tobigram-2.5.0-py3-none-any.whl |
|---|---|
| Size | 6.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8ca954fa5bef47cbfe98d48ed1658f9c96f0049fc3217799237ee16bfa8eb60
|
|
BLAKE2b-256 checksum How to use checksums |
a5fa697423f40e509b9aa767d0e2fc3851d62dc72fbaa87bec6c3c9934044a1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|