Back to feed

Telegram Bot API 10.4: HTML Widgets and Private Replies

Telegram has released a major update to Bot API version 10.4, fundamentally changing how users interact with bots and AI agents.

The key innovation is support for HTML widgets, which allow bot messages to be transformed into full-fledged interactive mini-apps directly within the chat.

Bots can now send live widgets with custom markup, buttons, and size settings that function as standalone tools or games.

Widgets enable two-way real-time communication: they can send requests to the bot's server and instantly display responses without reloading the page.

One significant advantage is centralized state management for widgets. If the same widget is used in multiple messages, it updates simultaneously across all instances.

This allows developers to change an element's appearance and functionality with a single action, ensuring interface consistency for all users.

The update also introduces private replies. When a button is pressed in a group chat, the bot's response may be visible only to the user who initiated the action.

Additionally, bots can now quote messages while preserving text formatting, improving readability of complex dialogues and conversation context.

Premium account owners gain new branding opportunities. They can now assign the suffixes agent, ai, app, game, or gay to their bots' additional usernames.

  • HTML widget support for creating interactive interfaces
  • Real-time data exchange between widgets and bots
  • Mass updating of widgets across different messages
  • Private replies for users in group chats
  • Quoting messages with preserved formatting
  • Extended naming rights for bots for Premium users
54K views

More from this channel Backdoor

Similar in this category Technology