dm_message_edit
Edit an outgoing direct message on Telegram. Update the text or clear the inline keyboard by providing a new body or reply_markup.
Instructions
Edit a previously-sent outbound message on the platform. Telegram only — Facebook and Instagram do not expose outbound edits. Provide body (new text/caption) and/or reply_markup (pass {} to clear the keyboard); at least one is required.
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>"
},
"name": "dm_message_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | New message text (or new caption for media messages). | |
| message_id | Yes | Message hashid OR external_id | |
| reply_markup | No | New inline keyboard / reply_markup. Pass an empty object {} to remove the existing keyboard. |