Skip to content

zAzAzAzAzAzAzAzAzAzAzAzAzA/athergram

 
 

Repository files navigation

Pyrogram
Telegram MTProto API Framework for Python
Documentation Releases

Pyrogram Fork

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

Note: This is a fork of Pyrogram maintained by Aes. Original copyright and credits belong to Dan and Pyrogram contributors.

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.

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

From GitHub Releases (Recommended):

pip3 install git+https://github.com/zAzAzAzAzAzAzAzAzAzAzAzAzA/athergram.git@latest

With TgCrypto for better performance:

pip3 install git+https://github.com/ohmyarthur/tgcrypto.git
pip3 install git+https://github.com/zAzAzAzAzAzAzAzAzAzAzAzAzA/athergram.git@latest

Resources

  • Check out the documentation to learn more about Pyrogram, get started right away and discover more in-depth material for building your client applications.

  • Join our Telegram community for discussions and support.

  • Reach out to @durovpalsu for questions.

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 100.0%