Skip to main content

DLGram: lightweight Telegram MTProto API framework for bots and user clients

Project description

Pygram

Elegant, modern, and fully asynchronous Telegram MTProto framework for Python


Introduction

Pygram is a modern, elegant, and fully asynchronous MTProto API framework for Telegram, designed for both user accounts and bots. It provides a clean and intuitive Python interface to interact with Telegram’s core API, while still exposing powerful low-level capabilities when you need them.

Whether you're building automation tools, chat utilities, music bots, or full‑fledged Telegram clients, Pygram gives you the flexibility, performance, and developer experience you expect from a modern framework.


Quick Example

from pyrogram import Client, filters

app = Client("my_account")


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


app.run()

Key Features

  • 🚀 Ready to Use – Install with pip and start immediately
  • 🧠 Easy & Intuitive – Clean, Pythonic API
  • ✨ Elegant – Developer‑friendly abstractions
  • ⚡ Fast – Powered by TgCrypto (C based)
  • 🧩 Type‑hinted – Excellent IDE support
  • 🔄 Fully Asynchronous – Async-first design
  • 🛠 Powerful – Full Telegram API access

Installation

pip3 install pygram

Or install the latest development version directly from GitHub:

pip3 install git+https://github.com/growxupdate/pygram.git

Pygram is built for developers who want speed, clarity, and full control over Telegram’s MTProto API.

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

dlgram-3.0.3.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

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

dlgram-3.0.3-py3-none-any.whl (4.9 MB view details)

Uploaded Python 3

File details

Details for the file dlgram-3.0.3.tar.gz.

File metadata

  • Download URL: dlgram-3.0.3.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for dlgram-3.0.3.tar.gz
Algorithm Hash digest
SHA256 b302ef8f8ff6bc5bbe9398abc2847690e7c0d8d7e92fa96ed985f90231b59ab6
MD5 d0a658b906d06c2da6ddf864095a8026
BLAKE2b-256 fe801c6d5d0acd9f9e70f346bbdf643e61176bdf75b85b3607b04951570e6557

See more details on using hashes here.

File details

Details for the file dlgram-3.0.3-py3-none-any.whl.

File metadata

  • Download URL: dlgram-3.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for dlgram-3.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 19a7c4c0aa53a4bc81ba02de2c96c20a30ec73c7952737ec162c1bc15f27836b
MD5 76871f248df512b2b4bcf43e7ee12f4a
BLAKE2b-256 fe7c1639a621d029eec4698c912ca1f4c372ee1d0ccc5dd8ac15bebbacc4450c

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