Skip to main content

Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots - Ayiin's experimental fork

Project description

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.

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

PyrogramXd-2.0.64.tar.gz (341.4 kB view details)

Uploaded Source

Built Distribution

PyrogramXd-2.0.64-py3-none-any.whl (656.7 kB view details)

Uploaded Python 3

File details

Details for the file PyrogramXd-2.0.64.tar.gz.

File metadata

  • Download URL: PyrogramXd-2.0.64.tar.gz
  • Upload date:
  • Size: 341.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for PyrogramXd-2.0.64.tar.gz
Algorithm Hash digest
SHA256 c41cbeedf31ac1749dee5222654f10ae21c3f7e7b9fd94c3dbee33be7626add6
MD5 f9bd6eb4c0f74bf29a654b842902c1b3
BLAKE2b-256 d85e43924f2f74b8afceec202783bb164566be63ec69103a90ade09c33590e90

See more details on using hashes here.

File details

Details for the file PyrogramXd-2.0.64-py3-none-any.whl.

File metadata

  • Download URL: PyrogramXd-2.0.64-py3-none-any.whl
  • Upload date:
  • Size: 656.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for PyrogramXd-2.0.64-py3-none-any.whl
Algorithm Hash digest
SHA256 98a406c9ffc95ccb754084104b1abb2c8e9df4b815b2886e4f2f0282487a66a1
MD5 13ac08323cc37e91d5641346a9e02b75
BLAKE2b-256 1d4868dd93e08405623c44d42a70b1a2777874b16f028a872424c94d82062107

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