Skip to main content

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

Project description

Pyrogram
Telegram MTProto API Framework for Python
Homepage Documentation News Chat

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 my fork, you can consider:

  • https://t.me/Hypergram_Chat - Hypergram Group
  • https://t.me/Hypergram_News - Hypergram Channel

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

Stable version

pip3 install Hypergram

Hypergram version

pip3 install https://github.com/Shadowc89/Hypergram.git --update-version

Resources

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hypergram-2.2.23-py3-none-any.whl (5.7 MB view details)

Uploaded Python 3

File details

Details for the file hypergram-2.2.23-py3-none-any.whl.

File metadata

  • Download URL: hypergram-2.2.23-py3-none-any.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for hypergram-2.2.23-py3-none-any.whl
Algorithm Hash digest
SHA256 07af1f610a98cf8af6b7d42f1034a0f0cdea8c573d1b7a9ef073312c0d8b0630
MD5 ac8c900bee14c099e0ee0099884d2249
BLAKE2b-256 271ae001500eaba165dcb05086323c7ca26df576f081f3816040281c7953c7af

See more details on using hashes here.

Supported by

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