Telegram bots can now send interactive HTML widgets that render inside a message bubble. Bot API 10.4 adds them with dynamic layouts, custom sizing and interactive elements.
A widget is one self-contained HTML document with inline CSS and JavaScript, limited to 4,096 bytes after compression. It can send a query to the bot and get an answer back, so the interface reacts without leaving the chat. Bots can update a widget in place, and a shared widget lets one interface appear in many messages…




