Welcome to FTMGram

FTMGram

Telegram MTProto API Framework for Python
HomepageDevelopmentv3.5.1 ReleaseAll ReleasesNews

Note

🎉 FTMGram v3.5.1 Released! Featuring Bot Chat History Scanning (get_bot_chat_history), Turbo Multi-Worker Media Engine (fast_download), In-Message Buttons (<tg-button-row>), AI Token Streaming (stream_text), Fluent RichMessageBuilder DSL, Batch Purge Admin Tools, and Checklists. Read the Version 3.5.1 release notes for full details!

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 v3.5.1!")

app.run()

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

How the Documentation is Organized