Version 3.5.6

Released: September 2026

FTMGram v3.5.6 adds in-message Web App (Mini App) button support, enhanced HTML formatting with <br/> support, and optimized sync/async loop dispatch.

What’s New in v3.5.6

  1. In-Message Web App (Mini App) Buttons Added web_app parameter to Button and RichMessageBuilder. 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)
    
  2. Clean HTML Line Breaks & Spacing Full support for <br/> and paragraph spacing in Rich Message HTML cards for beautifully formatted announcements.

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