Skip to main content

Tgram

A developer-friendly Telegram Bot API library designed for Python enthusiasts.
Channel • Documentation • Examples

🚀 Quick Start

Here's a basic example to get started with tgram:

import asyncio
from tgram import TgBot, filters
from tgram.types import Message

bot = TgBot("YOUR_BOT_TOKEN")

@bot.on_message(filters.text & filters.private)
async def on_message(bot: TgBot, message: Message) -> Message:
    # Echo the incoming message
    return await message.reply_text(
        message.text,
        entities=message.entities
    )

asyncio.run(bot.run())

📦 Features

  • Smart Plugins: Auto-loadable plugins for modular development.
  • Filters for Handlers: Simplify event handling with filters.
  • Bound Methods: Access bound methods for different update types easily.

📚 Documentation

Full documentation is available here.

🔧 Installation

You can install the tgram library using one of the following methods:

Via git:

pip install git+https://github.com/z44d/tgram -U

Via PyPI (Recommended)

pip install tgram -U

💡 Requirements

  • Python: Version 3.10 or higher.
  • Telegram Bot Token: Obtain one by following this guide.

💬 Help & Support

Release files for tgram 2.1.1

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

Source distribution (sdist)

Source distribution for tgram 2.1.1
File Size Uploaded
tgram-2.1.1.tar.gz 209.2 kB Details

Built distribution (wheel)

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

Total release size: 797.7 kB

Release files / tgram-2.1.1.tar.gz

Download URL tgram-2.1.1.tar.gz
Size 209.2 kB
Tags Source
SHA-256 checksum
How to use checksums
93b9c805a00c6c9a815b52405208f116a36275867f122f81c9ed51f86c58838f
BLAKE2b-256 checksum
How to use checksums
6d66dd288a0030e612ae910777009e8db36c798b7a077ef47fe9bbd65ef7e9d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.

Transparency log

Release files / tgram-2.1.1-py3-none-any.whl

Download URL tgram-2.1.1-py3-none-any.whl
Size 588.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3580e8172748a9c27552e4612807506fd567a09246768347faa9490ecae25211
BLAKE2b-256 checksum
How to use checksums
95f3fbdf5602bc69e242d726c2ed71830ed31f0bdf3c1d7dd98a962d8b0d2ec4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.13.0

2 release files

1.12.8

2 release files

1.12.7

2 release files

1.12.6

2 release files

1.12.5

2 release files

1.12.4

2 release files

1.12.3

2 release files

1.12.2

2 release files

1.12.0

2 release files

1.11.9

2 release files

1.11.8

2 release files

1.11.7

2 release files

1.11.6

2 release files

1.11.5

2 release files

1.11.4

2 release files

1.11.3

2 release files

1.11.2

2 release files

1.11.0

2 release files

1.10.9

2 release files

1.10.8

2 release files

1.10.6

2 release files

1.10.5

2 release files

1.10.4

2 release files

1.10.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

0.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