edit_message_text
Update the text or keyboard of an already sent Telegram message to correct content or change interaction options, including inline buttons and reply keyboards.
Instructions
Edit the text or keyboard of a previously sent message (does not work for media albums).
編輯先前已發送的文字訊息內容或鍵盤佈局。
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": {
"message_id": "<message_id>",
"text": "<text>"
},
"name": "edit_message_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| chat_id | No | ||
| message_id | Yes | ||
| parse_mode | No | Markdown | |
| inline_buttons | No | ||
| reply_keyboard | No | ||
| remove_keyboard | No | ||
| one_time_keyboard | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |