- Notifications
You must be signed in to change notification settings - Fork1.5k
Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
License
LGPL-3.0, GPL-3.0 licenses found
Licenses found
pyrogram/pyrogram
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Telegram MTProto API Framework for Python
Homepage • Documentation • Releases • News
Note
The project is no longer maintained or supported. Thanks for appreciating it.
Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
frompyrogramimportClient,filtersapp=Client("my_account")@app.on_message(filters.private)asyncdefhello(client,message):awaitmessage.reply("Hello from Pyrogram!")app.run()
Pyrogram is a modern, elegant and asynchronousMTProto APIframework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a botidentity (bot API alternative) using Python.
- 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 byTgCrypto, 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.
pip3 install pyrogram
- Check out the docs athttps://docs.pyrogram.org to learn more about Pyrogram, get started rightaway and discover more in-depth material for building your client applications.
- Join the official channel athttps://t.me/pyrogram and stay tuned for news, updates and announcements.
About
Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
Topics
Resources
License
LGPL-3.0, GPL-3.0 licenses found
Licenses found
Uh oh!
There was an error while loading.Please reload this page.