Skip to main content

Pyrogram
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.

Metadata

Release files for PyrogramXd 2.0.64

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyrogramXd 2.0.64
File Size Uploaded
PyrogramXd-2.0.64.tar.gz 341.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyrogramXd 2.0.64
File Interpreter ABI Platform
PyrogramXd-2.0.64-py3-none-any.whl Python 3 none any Details

Total release size: 998.1 kB

Release files / PyrogramXd-2.0.64.tar.gz

Download URL PyrogramXd-2.0.64.tar.gz
Size 341.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c41cbeedf31ac1749dee5222654f10ae21c3f7e7b9fd94c3dbee33be7626add6
BLAKE2b-256 checksum
How to use checksums
d85e43924f2f74b8afceec202783bb164566be63ec69103a90ade09c33590e90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release files / PyrogramXd-2.0.64-py3-none-any.whl

Download URL PyrogramXd-2.0.64-py3-none-any.whl
Size 656.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98a406c9ffc95ccb754084104b1abb2c8e9df4b815b2886e4f2f0282487a66a1
BLAKE2b-256 checksum
How to use checksums
1d4868dd93e08405623c44d42a70b1a2777874b16f028a872424c94d82062107
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release history Release notifications | RSS feed

This release

2.0.64 This release

2 release files

2.0.63

2 release files

2.0.62

2 release files

2.0.61

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page