Skip to main content

Srigram

High-Performance Telegram MTProto API Framework for Python

PyPI version Python versions License Telegram Support


Srigram is an elegant, asynchronous, and deeply customizable Python framework built directly on top of the Telegram MTProto API. It empowers developers to build highly scalable bots and user accounts with minimal boilerplate.


⚡️ Why Srigram?

When building production-grade Telegram applications, you need a framework that doesn't just work, but stays ahead of the curve.

  • Modern UI Support: Natively supports the latest Telegram UI updates, including Bot API 9.4+ colored keyboards (primary, danger, success) and Custom Premium Emojis directly on buttons.
  • High-Concurrency Ready: Engineered from the ground up on Python's asyncio to handle thousands of concurrent updates seamlessly.
  • Unified Ecosystem: Write identical, intuitive code for both standard Bot Accounts and User Accounts (Userbots).
  • Direct MTProto Access: Built for power users. Drop down to raw MTProto schema methods whenever you need precise control over Telegram's backend.

⚙️ Installation

Install Srigram and its core dependencies via PyPI:

pip install -U pyrogram

Requires Python 3.8 or higher.

🚀 Quick Start

1. The Standard Bot

Building a highly responsive bot takes less than 15 lines of code.

from pyrogram import Client, filters

app = Client(
    "my_bot",
    api_id=1234567,
    api_hash="your_api_hash_here",
    bot_token="your_bot_token"
)

@app.on_message(filters.command("start") & filters.private)
async def hello(client, message):
    await message.reply_text("Hello from Srigram! 🚀")

if __name__ == "__main__":
    app.run()

2. Advanced: Smart Keyboards & Custom Emojis

Srigram makes it incredibly easy to utilize advanced Telegram UI features natively.

from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton

@app.on_message(filters.command("menu"))
async def send_menu(client, message):
    keyboard = InlineKeyboardMarkup(
        [
            [
                InlineKeyboardButton(
                    "Confirm Action", 
                    callback_data="confirm", 
                    style="success", # Renders a green button
                    icon_custom_emoji_id=5368324170671202286 # Native premium emoji support
                )
            ]
        ]
    )
    
    await message.reply_text("Please confirm your action below:", reply_markup=keyboard)

🤝 Contributing & Support

Srigram is actively maintained and thrives on community feedback. Whether you are hunting bugs, proposing features, or just want to show off what you've built:


Engineered with ❤️ by Srijan Majumdar.

Release files for kittygram 2.4.6

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

Source distribution (sdist)

Source distribution for kittygram 2.4.6
File Size Uploaded
kittygram-2.4.6.tar.gz 2.1 MB Details

Built distribution (wheel)

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

Total release size: 11.1 MB

Release files / kittygram-2.4.6.tar.gz

Download URL kittygram-2.4.6.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
17b1ce54e2fb84a458a9c780e37ae9cd00e28b4b56db12adacdbc8d51bef06c2
BLAKE2b-256 checksum
How to use checksums
6cec429c0ac507f3f4ab7ad99f31908f0153cbed7e7ab94b9a5379d887015c54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / kittygram-2.4.6-py3-none-any.whl

Download URL kittygram-2.4.6-py3-none-any.whl
Size 9.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dd2b4280ef811d28038f78042b4cf6bb096db9ee806a8349d66f5787c98e3fb1
BLAKE2b-256 checksum
How to use checksums
53abae25397fc9bac39f8e21411c89a3306cf27dfbd4b7f6c1f469927e27d74d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

2.4.6 This release

2 release files

2.4.5

1 release file

2.4.4

2 release files

2.4.3

2 release files

2.4.2

2 release files

2.4.1

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