项目作者: pyrogram

项目描述 :
Telegram MTProto API Python client library framework for users and bots
高级语言: Python
项目地址: git://github.com/pyrogram/pyrogram.git
创建时间: 2017-12-12T09:37:41Z
项目社区:https://github.com/pyrogram/pyrogram

开源协议:GNU Lesser General Public License v3.0

下载




Pyrogram



Telegram MTProto API Framework for Python



Homepage



Documentation



Releases



News

Pyrogram

[!NOTE]
The project is no longer maintained or supported. Thanks for appreciating it.

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

  1. from pyrogram import Client, filters
  2. app = Client("my_account")
  3. @app.on_message(filters.private)
  4. async def hello(client, message):
  5. await message.reply("Hello from Pyrogram!")
  6. 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

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