Telegram Text Formatting Engine: Bold, Monospace, Spoilers & Markdown Guide
Transform plain chat text into visually structured technical memos, clean code snippets, and spoiler-protected spoilers. Telegram features full inline Markdown support, contextual formatting menus, and rich MTProto MessageEntity encoding across all native desktop and mobile apps.
Official Telegram demonstration showcasing context menu text selection, shortcut formatting, and spoiler tags in chat messages.
format_shapes Supported Styles & MTProto MessageEntity Architecture
In legacy messengers, formatted text is stored as messy escaped strings. Telegram separates message text from formatting: the message body is stored in clean UTF-8, while styles are transmitted as a parallel array of MessageEntity structs containing exact character offset and length indices:
Bold & Italic
Highlight key terms with **double asterisks** for bold or *single asterisks* (or __double underscores__) for italic emphasis.
Monospace Code
Enclose commands or API parameters in single backticks `curl localhost` for inline code, or triple backticks ``` for syntax-highlighted multi-line code blocks.
Hidden Spoilers
Wrap sensitive plot twists or sensitive answers in double pipes ||spoiler||. Telegram blankets the text with an interactive shimmer particle effect that only reveals on tap.
Strikethrough & Underline
Use ~~double tildes~~ to cross out deprecated points, or select text and choose Underline from the context menu.
keyboard Desktop & Mobile Formatting Shortcuts Reference
Bold Formatting
Markdown: **text** • Desktop Shortcut: Ctrl + B (Windows) / Cmd + B (macOS)
Italic Formatting
Markdown: *text* or __text__ • Desktop Shortcut: Ctrl + I / Cmd + I
Monospace Code
Markdown: `code` • Desktop Shortcut: Ctrl + Shift + M / Cmd + Shift + M
Spoiler Protection
Markdown: ||hidden|| • Desktop Shortcut: Ctrl + Shift + P / Cmd + Shift + P
Interactive Markdown & Entity Compilation Studio
Telegram Rich Text Formatting & Markdown Flowchart
A comprehensive visual blueprint summarizing Markdown syntax rules, shortcut key combinations, hidden spoiler animations, and MTProto entity serialization.