Skip to main content

Hydrogram
Python Framework for the Telegram MTProto API
Homepage • Documentation • Releases • News

Hydrogram

We use Ruff PyPI package version PyPI license PyPI python versions PyPI download month GitHub Actions status

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.

Metadata

Release files for dojoooomoooooo 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dojoooomoooooo 0.2.7
File Size Uploaded
dojoooomoooooo-0.2.7.tar.gz 483.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dojoooomoooooo 0.2.7
File Interpreter ABI Platform
dojoooomoooooo-0.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 4.9 MB

Release files / dojoooomoooooo-0.2.7.tar.gz

Download URL dojoooomoooooo-0.2.7.tar.gz
Size 483.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e2d12178c7c9b505a12bb8bd9ae5360af34dc05ac6cd8134dd33a00c3be0e036
BLAKE2b-256 checksum
How to use checksums
064fe41e864a8200524fc303af55336c1c04e732fe8a59b2a48bc58785398d6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / dojoooomoooooo-0.2.7-py3-none-any.whl

Download URL dojoooomoooooo-0.2.7-py3-none-any.whl
Size 4.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ad8cb48e3b7b579c9a29f02b6369dff12b9c8a2a7563ba710974094d62d14891
BLAKE2b-256 checksum
How to use checksums
0207aeabffa64581d09efa250ee343f8eab391580af4b73df6c7d77dcc44236c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

1.2.43

2 release files

1.2.42

2 release files

1.2.40

2 release files

This release

0.2.7 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page