|
1 week ago | |
---|---|---|
.github | 2 months ago | |
compiler | 1 week ago | |
docs | 2 weeks ago | |
pyrogram | 1 week ago | |
tests | 3 weeks ago | |
.gitignore | 5 months ago | |
COPYING | 3 years ago | |
COPYING.lesser | 3 years ago | |
MANIFEST.in | 1 month ago | |
NOTICE | 3 weeks ago | |
README.md | 2 weeks ago | |
dev-requirements.txt | 2 months ago | |
requirements.txt | 5 months ago | |
setup.py | 3 weeks ago | |
tox.ini | 2 months ago |
Telegram MTProto API Framework for Python
Documentation
•
Releases
•
Community
from pyrogram import Client, filters
app = Client("my_account")
@app.on_message(filters.private)
async def hello(client, message):
await message.reply_text(f"Hello {message.from_user.mention}")
app.run()
Pyrogram is a modern, elegant and easy-to-use Telegram client library framework written from the ground up in Python and C. It enables you to easily create custom Telegram client applications for both user and bot identities (bot API alternative) via the MTProto API.
pip3 install pyrogram