Skip to content

fourstring/pyrogram

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,224 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Telegram MTProto API Client Library for Python
Download β€’ Documentation β€’ Community

Scheme TgCrypto

Pyrogram

from pyrogram import Client, Filters

app = Client("my_account")

@app.on_message(Filters.private)
async def hello(client, message):
    await message.reply("Hello {}".format(message.from_user.first_name))


app.run()

Pyrogram is a fast, fully asynchronous Telegram Client Library written from the ground up in Python and C. It can be used for building custom applications that interact with the Telegram MTProto API as both User and Bot.

Features

  • πŸ“¦ Easy to use: You can easily install Pyrogram using pip and start building your app right away.
  • πŸš€ High-level: The low-level details of MTProto are abstracted and automatically handled.
  • ⚑️ Fast: Crypto parts are boosted up by TgCrypto, a high-performance library written in pure C.
  • ⏱ Asynchronous: Pyrogram delivers extra performance while running on one OS-level thread only.
  • πŸ”„ Updated to the latest Telegram API version, currently Layer 82 on top of MTProto 2.0.
  • πŸ“– Documented: Pyrogram public API is well documented and resemble the Telegram Bot API.
  • πŸ’― Full API, allowing to execute any advanced action an official client is able to do, and more.

Requirements

Installing

pip3 install pyrogram

Getting Started

  • πŸ“– The Docs contain lots of resources to help you getting started with Pyrogram: https://docs.pyrogram.ml.
  • πŸ’‘ Reading Examples in this repository is also a good way for learning how things work.
  • ❓ Seeking extra help? Don't be shy, come join and ask our Community!
  • βœ‰οΈ For other requests you can send an Email or a Message.

Contributing

If you like Pyrogram, you are welcome to help make it even better by either submitting pull requests or reporting issues/bugs as well as suggesting best practices, ideas, enhancements on both code and documentation. Any help is appreciated!

About

πŸ”₯ Telegram MTProto API Client Library and Framework for Python

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.lesser
GPL-3.0
COPYING

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 100.0%