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.
- Up-to-Date: 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 (Recommended)
pip install 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
pip install tobigram[call] # voice and video calls (ntgcalls & py-tgcalls)
pip install tobigram[all] # all optional dependencies (calls, fast, databases)
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
Metadata
Release files for tobigram 2.5.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 | |
|---|---|---|---|
| tobigram-2.5.1.tar.gz | 2.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tobigram-2.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 MB
Release files / tobigram-2.5.1.tar.gz
| Download URL | tobigram-2.5.1.tar.gz |
|---|---|
| Size | 2.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
563edf2bad9f782414bc2241c015b794f95e67a7936584ccebafa05d27ade294
|
|
BLAKE2b-256 checksum How to use checksums |
272a807507ae9a0bbc4435f62727c5d78a13582e943964f9d8770c1489f36dac
|
| 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.1-py3-none-any.whl
| Download URL | tobigram-2.5.1-py3-none-any.whl |
|---|---|
| Size | 7.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88ef0423e6fadb5002fcc2ed46c03cbe8aaa83eef862c7e1695ca606961fcdaf
|
|
BLAKE2b-256 checksum How to use checksums |
860d10ebdb9a00207838e6e81e31a0b3bff6c6ec8c6eb1cbcbbf12c054572894
|
| 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}
|