edit_message_text
Change the text of an existing Telegram message sent by a bot or inline mode, using text or rich_message content to correct, update, or reformat messages.
Instructions
Edit the text of a message sent by the bot or via inline mode. Pass either text or rich_message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Message text (1-4096 chars) | |
| chat_id | No | Chat ID or @username | |
| entities | No | Array of MessageEntity objects | |
| message_id | No | Message ID | |
| parse_mode | No | Formatting mode | |
| reply_markup | No | InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, or ForceReply | |
| rich_message | No | InputRichMessage — the long-form post format. Set EXACTLY ONE of markdown, html or blocks. Limits: 32768 characters, 500 blocks (nested items count), 50 media, 20 table columns, 16 nesting levels. Images go in their own block as HTTP(S) URLs. Unsure of the syntax? Call telegram_format with topic "rich_message" first. | |
| inline_message_id | No | ||
| link_preview_options | No | LinkPreviewOptions object | |
| business_connection_id | No |