View on GitHub

Telegram MTProto API Framework for Python
Documentation Development News

Used by

Welcome to Pyrogram

Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots

from pyrogram import Client, filters

app = Client("my_account")

async def hello(client, message):
    await message.reply("Hello from Pyrogram!")

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.

Key Features


$ pip install pyrogram