Skip to main content

Pyrogram
Telegram MTProto API Framework for Python
Documentation • Releases • Community

Pyrogram

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.

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.
  • Asynchronous: Allows both synchronous and asynchronous models to fit all usage needs.
  • Documented: API methods, types and public interfaces are all well documented.
  • Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.
  • 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

Installing

pip3 install pyrogram

Resources

Metadata

Release files for PyrogramPlus 1.2.22

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

Source distribution (sdist)

Source distribution for PyrogramPlus 1.2.22
File Size Uploaded
PyrogramPlus-1.2.22.tar.gz 309.4 kB Details

Built distribution (wheel)

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

Total release size: 855.0 kB

Release files / PyrogramPlus-1.2.22.tar.gz

Download URL PyrogramPlus-1.2.22.tar.gz
Size 309.4 kB
Tags Source
SHA-256 checksum
How to use checksums
eb83fee78283cbde5bf5681b0c3c81367ba1368135940261dd798849a482a718
BLAKE2b-256 checksum
How to use checksums
8147ea45387ab2d5d3665d4d546b4b35941b122a98deb6a39b003e0320ff97a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / PyrogramPlus-1.2.22-py3-none-any.whl

Download URL PyrogramPlus-1.2.22-py3-none-any.whl
Size 545.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a715eda132553a5dd70c83bcef3f088ebefea92f9e930a917e818bc0640c5c1b
BLAKE2b-256 checksum
How to use checksums
faf384ac942fe9617f6d62606d7e5e4df2cf20c0c7e48f6e16a870dbdc33aa88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release history Release notifications | RSS feed

This release

1.2.22 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