editEphemeralMessageCaption
Edit the caption of a Telegram ephemeral message by specifying chat, receiver, message ID, and new caption; returns True on success.
Instructions
Use this method to edit the caption 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>",
"caption": "<caption>"
},
"name": "editEphemeralMessageCaption"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | Yes | New caption of the message, 0-1024 characters after entities parsing | |
| chat_id | Yes | Unique identifier for the target chat or username of the target supergroup in the format `@username` | |
| parse_mode | No | Mode for parsing entities in the message caption. See formatting options for more details. | |
| reply_markup | No | An object for an inline keyboard | |
| caption_entities | No | A list of special entities that appear in the caption, which can be specified instead of parse_mode | |
| receiver_user_id | Yes | Identifier of the user who received the message | |
| ephemeral_message_id | Yes | Identifier of the ephemeral message to edit | |
| show_caption_above_media | No | Pass True if the caption must be shown above the message media. Supported only for animation, photo and video messages. |