edit_message_text
Update the text of a Telegram message already sent by your bot or via inline mode. Change content, fix errors, or adjust formatting without resending.
Instructions
Edit the text of a message sent by the bot or via inline mode.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "edit_message_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 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 | |
| inline_message_id | No | ||
| link_preview_options | No | LinkPreviewOptions object |