🛠 How to Use the TMA – Telegram Mini App Plugin
1. Add the TMA – Master Element
With TMA – Master, your Bubble app becomes a full-featured Telegram Mini App.
It enables the core Telegram WebApp functionality, including:
• Auto-loading the Telegram WebApp SDK
• Detecting if the app is running inside Telegram
• Exposing isminiapp to conditionally show or hide elements
You can also use TMA – Master to:
• Trigger basic haptic feedback
• Programmatically close the Mini App (for example, after copying a code)
👉 See the demo in action:
https://plugin-test-zone.bubbleapps.io/version-test🖥️ Visit the editor for the demo:
https://bubble.io/page?id=plugin-test-zone&test_plugin=1748803492836x605616053227880400_current&tab=Workflow&name=index&type=page&elements=bTHEV&wf_item=bTHGf⸻
2. Play Basic Haptics
Use the Trigger Haptic action to provide tactile feedback on supported devices (including iPhone).
In your Bubble workflow:
• Action: TMA - Master → Trigger Haptic
• Choose from:
light, medium, heavy, soft, rigid, success, warning, error
⸻
3. Close the Mini App
Use the Close App action to cleanly exit the Telegram Mini App from any workflow step.
• Action: TMA - Master → Close App
⸻
4. Use Advanced Haptics (Optional)
For richer haptic effects like scroll feedback or unfold animations, use the TMA – Advanced Haptics element.
Note: This element requires TMA – Master to also be present on the page.