Tool

Escape text for Telegram MarkdownV2, HTML and Discord markdown

Based on Telegram Bot API formatting rules and Discord markdown conventions. Prefer HTML parse mode on Telegram when content is user-generated.

Telegram MarkdownV2 special characters

Per the Bot API formatting options, these must be escaped with a preceding backslash when used as literal text: _ * [ ] ( ) ~ ` > # + - = | { } . !

Source: Telegram Bot API formatting options.

Related comparisons and tools