Skip to content

Message editor ​

The composer on chat/user pages supports two message types:

  • Regular: bold, italic, underline, strikethrough, spoilers, links, quotes, inline code and code blocks. Text uses Telegram HTML; a photo uses the text as its caption (1,024 characters rather than the 4,096-character text limit).
  • Rich message: adds headings (levels 1–3), ordered/bullet lists, tables and collapsible sections. Sent with Telegram sendRichMessage and Rich HTML, with a 32,768-character limit. This editor exposes a subset of Telegram's rich formatting; formulas, custom emoji, interactive blocks and additional media types are not editor controls in this release.

One JPEG, PNG or WebP photo can be attached, replaced or removed. Rich mode embeds it above the text. The client models attachments as a collection with a limit of one; album sending is not enabled. Photos are limited to 10 MB. The bot must have permission to send messages and photos in the destination.

The editor is an approximation of Telegram's presentation. Use Test to myself to check the final result in the personal bot chat. Test sends retain the draft. Regular sends clear it only after success. Failed and partial deliveries retain the draft and display an error. With partial delivery, check recipients before retrying: some may already have received the message. Closing the dialog retains the draft while the page remains mounted; drafts are not persisted across reloads. Switching Rich content to Regular requires confirmation because structures are converted to paragraphs.

Editing the data privacy message ​

The privacy notice in Settings → Bot Messaging uses the same editor. Older saved Markdown is converted into an editable copy when opened. Nothing changes until you save. If conversion fails, correct the highlighted original Markdown first. Reset reloads the saved message. Bot descriptions and about text remain plain text. Per-chat welcome messages keep Telegram Markdown and their {name} / {chat} placeholders.

See broadcasting safely for the complete workflow.