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.4-cp311-cp311-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 178745a8c919955595ba868812445ab4b9d747223db04086773c817f32169422 |
|
MD5 | 2f15b42929669f307bb2e5a7222a5cb7 |
|
BLAKE2b-256 | 10e2f1b31a3bf3bcfeebb7937d8901dd916bf0c051d3d437b55563b8723a2e95 |
Hashes for techgram-1.0.4-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1e5a0d044960e5a9aa6669140a456f96c567d02e2507e00c17036789938ad05 |
|
MD5 | f5a857753207b88ef34108b965e73a22 |
|
BLAKE2b-256 | efbe73feee1b5eb1a5af167725a4c1eb3c7c278a4650d54e27b063bba210228f |
Hashes for techgram-1.0.4-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29cfdd3d1ffb5714c6de61295ce3c12fb293502289c201a0a6544ea9c632c6b7 |
|
MD5 | f00860e2dc4e10e239b5a67f5fb7a144 |
|
BLAKE2b-256 | 820bbbd919997dc72817812aac56b6bf0a75cb6739cc738370aeb1c1b3386044 |
Hashes for techgram-1.0.4-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 065f468ec9efa04f5e0bd24f732b8db0bf907e2dda124b7a44d05353eaf1b60b |
|
MD5 | c0ab508ca120cada3b8722bfe95f5d8e |
|
BLAKE2b-256 | c8f2fb11338126811667915400f824eba8e15eb698d3a1ab63abbbca0b93099d |
Hashes for techgram-1.0.4-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0721e83f3ff82a9a9bdbccd8bc87b5e0cc9f4b8d0a906c866735e67ed2c63845 |
|
MD5 | 67dfa1599c695d0fe198f5814d2f5605 |
|
BLAKE2b-256 | 0c68a8da31063c2fa47d2fdfc20f02af955821826cfed5a7e7d86f6674254b40 |