Skip to main content

FTMGram
Telegram MTProto API Framework for Python

PyPI version License Python versions GitHub Stars


FTMGram

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

FTMGram is an actively maintained, feature-complete fork of Pyrogram with full Bot API 10.1 (June 2026) support. It is a drop-in replacement for Pyrogram and KuriGram with zero migration friction.

from ftmgram import Client, filters

app = Client("my_account")

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

app.run()

What's New in v3.3.0 — Bot API 10.1

Feature Status
Rich Messages — sendRichMessage, sendRichMessageDraft, editMessageText ✅
RichText — 14 inline text types (Bold, Italic, Url, Code, Marked, …) ✅
RichBlock — 19 block types (Paragraph, Photo, Video, Table, Slideshow, …) ✅
Checklist media — MessageMediaType.CHECKLIST, Checklist, ChecklistTask ✅
Link poll media — MessageMediaType.LINK, Link type ✅
Chat join request queries — answerChatJoinRequestQuery, sendChatJoinRequestWebApp ✅
User.supports_join_request_queries, Chat.guard_bot, ChatJoinRequest.query_id ✅
Owned star balance — get_owned_star_count ✅

Key Features

  • Ready — pip install ftmgram and start building immediately.
  • Easy — Clean, Pythonic API that hides MTProto complexity.
  • Elegant — Low-level details abstracted into intuitive high-level types.
  • Fast — Powered by TgCrypto, a C-level cryptography library.
  • Type-hinted — Full type annotations for excellent IDE/editor support.
  • Async — Fully asynchronous; synchronous usage also supported.
  • Powerful — Complete access to Telegram's API — every official client action and more.
  • Bot API 10.1 complete — Latest Telegram features covered on day one.

Installing

Stable (PyPI)

pip install ftmgram

Latest (GitHub)

pip install https://github.com/ftmdevz/ftmgram/archive/ftmdevz.zip --force-reinstall

Quick Example — Rich Message

from ftmgram import Client
from ftmgram.types import InputRichMessage, InputRichMessageContent, RichText

app = Client("my_bot", bot_token="TOKEN")

async def main():
    await app.send_rich_message(
        chat_id=123456,
        rich_message=InputRichMessage(
            title=RichText.plain("FTMGram Guide"),
            content=[
                InputRichMessageContent.paragraph(
                    text=RichText.concat([
                        RichText.bold("FTMGram"),
                        RichText.plain(" supports full Bot API 10.1!"),
                    ])
                )
            ]
        )
    )

app.run(main())

Support

FTMGram is open source. Support its development:

Thank you ❤️


Resources


FTMGram is a fork of Pyrogram and FTMGram. Licensed under LGPLv3.

Release files for ftmgram 3.3.0

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

Source distribution (sdist)

Source distribution for ftmgram 3.3.0
File Size Uploaded
ftmgram-3.3.0.tar.gz 4.3 MB Details

Built distribution (wheel)

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

Total release size: 10.3 MB

Release files / ftmgram-3.3.0.tar.gz

Download URL ftmgram-3.3.0.tar.gz
Size 4.3 MB
Tags Source
SHA-256 checksum
How to use checksums
95c0d00f01893cd6a909c490ec650658841b34d8405e5e9239dc3055deea2eb9
BLAKE2b-256 checksum
How to use checksums
433cba30d70ca5ef35b210b73a1224ef99516e38a011119d414a52de0a78dc84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / ftmgram-3.3.0-py3-none-any.whl

Download URL ftmgram-3.3.0-py3-none-any.whl
Size 6.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
cdce3298adeb7f2f53ce25e294c5dc84f06d8012c1748576cbe2c96ff6728854
BLAKE2b-256 checksum
How to use checksums
7546a17b2187eae655ee84b1b30c6a5e28d5d0442c51b04ebd4b77b59602b55b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

3.5.8

2 release files

3.5.7

2 release files

3.5.6

2 release files

3.5.4

2 release files

3.5.3

2 release files

3.5.2

2 release files

3.5.1

2 release files

3.5.0

2 release files

This release

3.3.0 This release

2 release files

3.1.0

2 release files

3.0.25

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.2.17

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