editEphemeralMessageReplyMarkup
Updates the inline keyboard reply markup on an ephemeral Telegram message so bots can change reply options without resending the message content.
Instructions
Use this method to edit only the reply markup 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>"
},
"name": "editEphemeralMessageReplyMarkup"
}
}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` | |
| 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 |