Skip to main content

Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots

Project description

Irenogram
Telegram MTProto API Framework for Python
Homepage Documentation Issues Support Chat

Irenogram

Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots

from pyrogram import Client, filters

app = Client("my_account")

@app.on_message(filters.private)
async def hello(client, message):
    await message.reply("Hello from Irenogram!")

app.run()

Irenogram is a modern, elegant and asynchronous MTProto API framework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot identity (bot API alternative) using Python.

Key Features

  • Ready: Install Irenogram with pip and start building right away. Drop-in replacement for Pyrogram.
  • Easy: Makes the Telegram API simple and intuitive, with full type hints for IDE support.
  • Elegant: Low-level details abstracted, presented in convenient, Pythonic ways.
  • Fast: Optimized MTProto implementation with C-accelerated cryptography via TgCrypto.
  • Type-hinted: Complete type annotations across all 2,200+ Telegram types for excellent IDE support.
  • Async: Fully asynchronous (also synchronous if needed, for convenience).
  • Powerful: Full Telegram API access including Managed Bots, Business Accounts, Advanced Polls.

Rare & Exceptional Features

  • Layer 224 Complete — All 2,200+ MTProto types with full type coverage
  • Managed Bots — Create and control multiple bots via single account API
  • Business Accounts — Full support for Telegram Business API across all methods
  • Advanced Polls — Quiz mode with multiple correct answers, revoting, hidden results, dynamic options
  • In-Memory Sessions — Zero-disk temporary sessions for stateless deployments
  • Session Strings — Export/import sessions without file I/O
  • Zero Migration — 100% backward compatible with existing Pyrogram code
  • Multiple Storage — SQLite, Memory, File, MongoDB storage backends

Installing

pip install irenogram

Resources

License

Irenogram is distributed under the terms of the GNU Lesser General Public License v3.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

irenogram-2.3.80.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

irenogram-2.3.80-py3-none-any.whl (5.5 MB view details)

Uploaded Python 3

File details

Details for the file irenogram-2.3.80.tar.gz.

File metadata

  • Download URL: irenogram-2.3.80.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for irenogram-2.3.80.tar.gz
Algorithm Hash digest
SHA256 35aa82f165c722b799f05a37b68b646aa583b419f2e5bd54327965100bd375be
MD5 32f6fd82877c046f73d0f9da08fd29ff
BLAKE2b-256 2bce66c5346591d9a4d7275c0a8c9bccf5f13797f1a9f8d0884e0a294cfa39ea

See more details on using hashes here.

File details

Details for the file irenogram-2.3.80-py3-none-any.whl.

File metadata

  • Download URL: irenogram-2.3.80-py3-none-any.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for irenogram-2.3.80-py3-none-any.whl
Algorithm Hash digest
SHA256 34c4210b67ad68ca71aa33b4caa43fbdfd2e3e8fab36b31aab2bd7e5a8e9d055
MD5 1f67f3c8b44b64e895ef946da83f27d4
BLAKE2b-256 cb1c6cb4f3106d6ffb4d77daecfd8fb96e3acd603098eb1fdac39d1c6be60b17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page