editEphemeralMessageMedia
Edits the media content of an ephemeral Telegram message for a specified receiver, returning true on success; delivery of the edit event is not guaranteed.
Instructions
Use this method to edit the media of an ephemeral message. Note that it is not guaranteed that the user will receive the message edit event, especially if they are offline. On success, True is returned.
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": {
"chat_id": "<chat_id>",
"receiver_user_id": "<receiver_user_id>",
"ephemeral_message_id": "<ephemeral_message_id>",
"media": "<media>"
},
"name": "editEphemeralMessageMedia"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media | Yes | An object for the new media content of the message | |
| chat_id | Yes | Unique identifier for the target chat or username of the target supergroup in the format `@username` | |
| reply_markup | No | An object for an inline keyboard | |
| receiver_user_id | Yes | Identifier of the user who received the message | |
| ephemeral_message_id | Yes | Identifier of the ephemeral message to edit |