Version 3.5.5¶
Released: September 2026
FTMGram v3.5.5 adds in-message Web App (Mini App) button support, enhances HTML tag rendering with line breaks (<br/>), and optimizes sync/async loop dispatch compatibility across all Python versions.
—
What’s New in v3.5.5¶
In-Message Web App (Mini App) Buttons Added
web_appparameter toButtonandRichMessageBuilder. You can now open Telegram Mini Apps directly from styled in-message buttons in private chats / direct bot conversations:from ftmgram.helpers import RichMessageBuilder, Button rich = ( RichMessageBuilder() .title("🚀 FTM Mini App") .paragraph("Launch our interactive Web App directly inside Telegram:") .button_row( Button("🌐 Open Web App", web_app="https://my-mini-app.example.com", style="success") ) .build() ) await app.send_rich_message(chat_id, rich)
Clean HTML Line Breaks & Spacing Full support for
<br/>and paragraph spacing in Rich Message HTML cards for beautifully formatted announcements.Event Loop Auto-Detection Fix in ``sync.py`` Added priority fast-path detection for existing running loops (
asyncio.get_running_loop()) to eliminate nested loop conflicts when calling sync methods within asynchronous runtime frameworks (asyncio.run, FastAPI, Celery, Jupyter).
—
Upgrade¶
pip install --upgrade ftmgram