Skip to main content

Telegram MTProto API Client Library and Framework for Python

Project description

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

Copyright & License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyrogramPlus-1.2.22.tar.gz (309.4 kB view details)

Uploaded Source

Built Distribution

PyrogramPlus-1.2.22-py3-none-any.whl (545.6 kB view details)

Uploaded Python 3

File details

Details for the file PyrogramPlus-1.2.22.tar.gz.

File metadata

  • Download URL: PyrogramPlus-1.2.22.tar.gz
  • Upload date:
  • Size: 309.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for PyrogramPlus-1.2.22.tar.gz
Algorithm Hash digest
SHA256 eb83fee78283cbde5bf5681b0c3c81367ba1368135940261dd798849a482a718
MD5 8e8fd8ea056b39d11daf0d5aebd0815d
BLAKE2b-256 8147ea45387ab2d5d3665d4d546b4b35941b122a98deb6a39b003e0320ff97a5

See more details on using hashes here.

File details

Details for the file PyrogramPlus-1.2.22-py3-none-any.whl.

File metadata

  • Download URL: PyrogramPlus-1.2.22-py3-none-any.whl
  • Upload date:
  • Size: 545.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for PyrogramPlus-1.2.22-py3-none-any.whl
Algorithm Hash digest
SHA256 a715eda132553a5dd70c83bcef3f088ebefea92f9e930a917e818bc0640c5c1b
MD5 b76e8bb771994aaffd5b71e3a9cdb246
BLAKE2b-256 faf384ac942fe9617f6d62606d7e5e4df2cf20c0c7e48f6e16a870dbdc33aa88

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page