Sleek, advanced, and asynchronous Telegram MTProto API framework in Python, designed for fluid user and bot interactions.
pip install hydrogram
Python Framework for the Telegram MTProto API
Homepage
•
Documentation
•
Releases
•
News
Hydrogram
Description
Hydrogram is a Python library for interacting with the Telegram MTProto API. It provides a simple and intuitive interface for developers to leverage the power of Telegram's API in their Python applications.
Installation
To install Hydrogram, you need Python 3 installed on your system. If you don't have Python installed, you can download it from the official website.
To install Hydrogram, use pip:
pip install hydrogram -U
Usage
Here is a basic example of how to use Hydrogram:
from hydrogram import Client, filters
app = Client("my_account")
@app.on_message(filters.private)
async def hello(client, message):
await message.reply("Hello from Hydrogram!")
app.run()