Sleek, advanced, and asynchronous Telegram MTProto API framework in Python, designed for fluid user and bot interactions.
Project description
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()
Features
- Easy to use: Hydrogram provides a simple and intuitive interface for developers to leverage the power of Telegram's API in their Python applications, while still allowing advanced usages.
- Elegant: Low-level details are abstracted and re-presented in a more convenient way, making the Telegram API more accessible.
- Fast: Hydrogram is boosted by TgCrypto, a high-performance cryptography library written in C, which makes it faster than other Python Telegram libraries.
- Type-hinted: Types and methods are all type-hinted, enabling excellent editor support and making it easier to write and maintain code.
- Async: Hydrogram is fully asynchronous, which means it can handle multiple requests at the same time, making it faster and more efficient.
- Powerful: Hydrogram provides full access to Telegram's API to execute any official client action and more, giving developers the flexibility to build powerful applications.
Resources
- The documentation is the technical reference for Hydrogram. It includes detailed usage guides, API reference, and more.
- The homepage is the official website for Hydrogram. It includes a quickstart guide, a list of features, and more.
- Our Telegram channel is where we post news and updates about Hydrogram.
Contributing
Hydrogram is an open source project and we welcome contributions from the community. We appreciate all types of contributions, including bug reports, feature requests, documentation improvements, and code contributions.
To get started, please review our Contribution Guidelines for more information.
All contributors are expected to adhere to the Code of Conduct. Please read it before contributing.
We appreciate your help in making Hydrogram better!
Support
Hydrogram is an open source project. Your support helps us maintain and improve the library. You can support the development of Hydrogram through the following platforms:
Thanks
- Pyrogram and its contributors for the inspiration and base code.
License
You may copy, distribute and modify the software provided that modifications are described and licensed for free under LGPL-3. Derivatives works (including modifications or anything statically linked to the library) can only be redistributed under LGPL-3, but applications that use the library don't have to be.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hydrogram-0.2.0.tar.gz
.
File metadata
- Download URL: hydrogram-0.2.0.tar.gz
- Upload date:
- Size: 467.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b2ecbc795e8cb24daa70c49a3171c74cdb855bbd6fbcb35b1f49f62b75dd907 |
|
MD5 | 3a7bbe7c0f55e632ebafece3fe9481dc |
|
BLAKE2b-256 | 342dcbba4c2bedd89b5a42fa15b5d5c061a2d128bba856e95ea47da5de487dc2 |
File details
Details for the file hydrogram-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: hydrogram-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c64f13a97ca77724648b60c7704bd9ca3cf3e2ffab394762287ca2da58a598b |
|
MD5 | bdb6d3090b0241df9ce333f39b1288c2 |
|
BLAKE2b-256 | 1788947e6a11979912ac9e42065ce8016c469153293d3787e9291f3606d412b5 |