Skip to main content

Pyrogram
Telegram MTProto API Framework for Python
Homepage • Documentation • Releases • News

Pyrogram - Woto's experimental fork

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

WARNING: We merge changes made to few of pyrogram forks plus changes made by us to this repository. All the features are just customized feature mostly for personal use; there is no guarantee in them being stable, USE AT YOUR OWN RISK. All of the repositories that we merge (some) features from are listed in Extra.md file.

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

NOTE: in order to use WPyrogram, please uninstall pyrogram first.

pip uninstall pyrogram
pip install 'wpyrogram'

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.

Release files for WPyrogram 2.0.154

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

Source distribution (sdist)

Source distribution for WPyrogram 2.0.154
File Size Uploaded
wpyrogram-2.0.154.tar.gz 501.4 kB Details

Built distribution (wheel)

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

Total release size: 5.3 MB

Release files / wpyrogram-2.0.154.tar.gz

Download URL wpyrogram-2.0.154.tar.gz
Size 501.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7d316c47e329c5fcb22221efe718de9e6375de433fd6805236435446de7ab021
BLAKE2b-256 checksum
How to use checksums
e1ca15b0a5f7156763596fa08806f444112baa046c7e9e0457159190a7166c64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / wpyrogram-2.0.154-py3-none-any.whl

Download URL wpyrogram-2.0.154-py3-none-any.whl
Size 4.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b4e25ce0bbfcb75cce1ce8553ec2726871e0cf0e5e767ca279e99999959db541
BLAKE2b-256 checksum
How to use checksums
444b007eb02a84f753b642a4ccdd698272cdf3aa05146fb4ae29245e660f6872
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

2.0.154 This release

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