editEphemeralMessageText
Edit an ephemeral Telegram message's text or rich content by chat, recipient, and message ID; returns true on success, though recipients may not receive the edit event if offline.
Instructions
Use this method to edit an ephemeral text or rich 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>",
"text_or_rich_message": "<text_or_rich_message>"
},
"name": "editEphemeralMessageText"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username of the target supergroup in the format `@username` | |
| entities | No | A list of special entities that appear in message text, which can be specified instead of parse_mode | |
| parse_mode | No | Mode for parsing entities in the message text. See formatting options for more details. | |
| 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 | |
| link_preview_options | No | Link preview generation options for the message | |
| text_or_rich_message | Yes | New text or rich content of the message, a string maps to the `text` parameter and an object maps to the `rich_message` parameter |