Send Telegram Message in Markdown format
send_markdown_message_as_telegram_botSend formatted Telegram messages using Markdown, MarkdownV2, or HTML parsing for bold, italic, code, links, and more.
Instructions
Send a message using Telegram bot in Markdown format
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageText | Yes | Message text with formatting. Examples: HTML: <b>bold</b>, <i>italic</i>, <u>underline</u>, <s>strike</s>, <code>code</code> Markdown: *bold*, _italic_, `code`, [link](url) MarkdownV2: *bold*, _italic_, __underline__, ~strike~, ||spoiler||, `code` Prefer MarkdownV2. Read the documentation on MarkdownV2 formatting below: MarkdownV2 style To use this mode, pass MarkdownV2 in the parse_mode field. Use the following syntax in your message: *bold \*text* _italic \*text_ __underline__ ~strikethrough~ ||spoiler|| *bold _italic bold ~italic bold strikethrough ||italic bold strikethrough spoiler||~ __underline italic bold___ bold* [inline URL](http://www.example.com/) [inline mention of a user](tg://user?id=123456789) `inline fixed-width code` ``` pre-formatted fixed-width code block ``` ```python pre-formatted fixed-width code block written in the Python programming language ``` >Block quotation started >Block quotation continued >The last line of the block quotation **>The expandable block quotation started right after the previous block quotation >It is separated from the previous block quotation by an empty bold entity >Expandable block quotation continued >Hidden by default part of the expandable block quotation started >Expandable block quotation continued >The last line of the expandable block quotation with the expandability mark|| Please note: Any character with code between 1 and 126 inclusively can be escaped anywhere with a preceding '\' character, in which case it is treated as an ordinary character and not a part of the markup. This implies that '\' character usually must be escaped with a preceding '\' character. Inside pre and code entities, all '`' and '\' characters must be escaped with a preceding '\' character. Inside the (...) part of the inline link and custom emoji definition, all ')' and '\' must be escaped with a preceding '\' character. In all other places characters '_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!' must be escaped with the preceding character '\'. In case of ambiguity between italic and underline entities __ is always greadily treated from left to right as beginning or end of an underline entity, so instead of ___italic underline___ use ___italic underline_**__, adding an empty bold entity as a separator. | |
| parseMode | No | Message formatting mode: Markdown (legacy), MarkdownV2 (comprehensive), or HTML (tag-based) | MarkdownV2 |