ferogram-py
Python bindings for Ferogram, a Telegram MTProto framework written in Rust.
Built with PyO3 and maturin. Supports Linux, macOS, Windows, and Android (Termux).
What is ferogram-py?
ferogram-py brings Ferogram to Python.
The heavy lifting is handled by the Rust core. Networking, MTProto, encryption, session management, file transfers, and update processing are implemented in Rust while exposing a clean and familiar async Python API.
Whether you're building bots, userbots, automation tools, or Telegram applications, ferogram-py aims to provide the simplicity of Python together with the performance and reliability of Rust.
Features
- Async-first API
- High-performance Rust backend
- MTProto client support
- Bot and userbot support
- Raw Telegram API access
- Session management
- File uploads and downloads
- Event handlers and filters
- Cross-platform support
Installation
Pre-built wheels are published on PyPI for major platforms, making installation straightforward for most users.
Quick Start
=
await
Why ferogram-py?
Most Telegram Python libraries are implemented entirely in Python.
ferogram-py takes a different approach. Performance-critical components are implemented in Rust while Python remains the primary developer experience.
This allows applications to benefit from Rust's speed and reliability without sacrificing Python's ease of use.
Status
ferogram-py is actively developed alongside Ferogram itself.
The current focus is on providing stable Python bindings while gradually exposing more Ferogram features as the ecosystem grows.
The goal is to keep the Python API intuitive for Python developers while staying close to the native Rust implementation.
Availability
The package is available on PyPI and can be installed using pip.
New releases generally follow Ferogram releases, although some features may arrive later in Python as the bindings evolve.
Links
- GitHub: https://github.com/ankit-chaubey/ferogram-py
- Ferogram: https://github.com/ankit-chaubey/ferogram
- PyPI: https://pypi.org/project/ferogram
Author
Ankit Chaubey