Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
Project description
Telegram MTProto API Framework for Python
Homepage
•
Documentation
•
Releases
•
News
Pyrogram
Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
from pyrogram import Client, filters
app = Client("my_account")
@app.on_message(filters.private)
async def hello(client, message):
await message.reply("Hello from Pyrogram!")
app.run()
Pyrogram 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.
Support
If you'd like to support Pyrogram, you can consider:
Key Features
- Ready: Install Pyrogram with pip and start building your applications right away.
- Easy: Makes the Telegram API simple and intuitive, while still allowing advanced usages.
- Elegant: Low-level details are abstracted and re-presented in a more convenient way.
- Fast: Boosted up by TgCrypto, a high-performance cryptography library written in C.
- Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.
- Async: Fully asynchronous (also usable synchronously if wanted, for convenience).
- Powerful: Full access to Telegram's API to execute any official client action and more.
Installing
pip3 install pyrogram
Resources
- Check out the docs at https://docs.pyrogram.org to learn more about Pyrogram, get started right away and discover more in-depth material for building your client applications.
- Join the official channel at https://t.me/pyrogram and stay tuned for news, updates and announcements.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for techgram-1.0.7-cp312-cp312-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ce8f9dc8de9faed21be787adb7aa966a7a25398783c59135335d62199bcbaec |
|
MD5 | bbf4ba55a074c507cec516a2615fcbd1 |
|
BLAKE2b-256 | 1092c88b6f81dd03c277227394703ba5bb551a603c8634a78f88632088ea3e2a |
Hashes for techgram-1.0.7-cp311-cp311-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca50f3f6110417bb5667914c566d744584e653a281c9d607cc8668d897074af2 |
|
MD5 | 150a048e85f0220a3219177ce5d8a38e |
|
BLAKE2b-256 | e34533011ca2d1746e892fcd504892c6a58b04bc4b1bea4642415d3800f3807b |
Hashes for techgram-1.0.7-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea5faa41d1ab7199e925c8a71c96b27e3eb5e0bfbf9efa9be1de15c54332320e |
|
MD5 | cd31c5d1d0c45feb7cf796a32c0606b6 |
|
BLAKE2b-256 | 671d2017b36d59f8032efb51083f1b330d9a580c00ca2e02ed7159cb8376efde |
Hashes for techgram-1.0.7-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad6ef5b56489711df73fc5a723a0345e3ebe92f105264b401c0751c20cc5fde8 |
|
MD5 | 8897e7721a5f243f286e3e77306cbdc0 |
|
BLAKE2b-256 | d1a24239db9ad7281a1c41b683fb1edee3d4c5dbcb673ab347b0de7761dec15f |
Hashes for techgram-1.0.7-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d031a7b6a7c378707fec871c078392eacf96ea5df3d7a6cc97e9b77e52fcd8c |
|
MD5 | c26d280707bb992c73844b33772f420c |
|
BLAKE2b-256 | c6f6a8e0856e43520dcad3935c421c912f071fc3a95e31a0e926d1cb73cfee66 |
Hashes for techgram-1.0.7-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c48ca118615118d7b49e572e889531cb9e4dce54a40356409ecf01e219726e5 |
|
MD5 | b8d7ee56a863e0649e21dd6f5b6eaff0 |
|
BLAKE2b-256 | ab41436cb2842c2ebee54e94ae749f31f584d93e785c2265eba1521cefee8c6c |