Telegram MTProto API Client Library and Framework for Python
Project description
Telegram MTProto API Framework for Python
Documentation
•
Releases
•
Community
Pyrogram
from pyrogram import Client, Filters
app = Client("my_account")
@app.on_message(Filters.private)
def hello(client, message):
message.reply_text("Hello {}".format(message.from_user.first_name))
app.run()
Pyrogram is an elegant, easy-to-use Telegram client library and framework written from the ground up in Python and C. It enables you to easily create custom apps for both user and bot identities (bot API alternative) via the MTProto API.
Features
- Easy: You can install Pyrogram with pip and start building your applications right away.
- Elegant: Low-level details are abstracted and re-presented in a much nicer and easier way.
- Fast: Crypto parts are boosted up by TgCrypto, a high-performance library written in pure C.
- Documented: Pyrogram API methods, types and public interfaces are well documented.
- Type-hinted: Exposed Pyrogram types and method parameters are all type-hinted.
- Updated, to make use of the latest Telegram API version and features.
- Bot API-like: Similar to the Bot API in its simplicity, but much more powerful and detailed.
- Pluggable: The Smart Plugin system allows to write components with minimal boilerplate code.
- Comprehensive: Execute any advanced action an official client is able to do, and even more.
Requirements
- Python 3.5.3 or higher.
- A Telegram API key.
Installing
pip3 install pyrogram
Resources
- The Docs contain lots of resources to help you getting started with Pyrogram: https://docs.pyrogram.org.
- Reading Examples in this repository is also a good way for learning how Pyrogram works.
- Seeking extra help? Don't be shy, come join and ask our Community!
- For other requests you can send an Email or a Message.
Contributing
Pyrogram is brand new, and you are welcome to try it and help make it even better by either submitting pull requests or reporting issues/bugs as well as suggesting best practices, ideas, enhancements on both code and documentation. Any help is appreciated!
Copyright & License
- Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
- Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)
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 Distribution
Built Distribution
Hashes for Pyrogram-0.17.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dc98fa1c9b2a80044f8d69f7ff6d0f8edce9582b48f45556d8591a3c4d62d33 |
|
MD5 | bc8046ecc9dd90ff249320469a4bc5a0 |
|
BLAKE2b-256 | 3daaaa2ac418ce30e48345e5806121f3c8fd91b3c79f8a0688e58b8954588834 |