deleteEphemeralMessage
Deletes a specified ephemeral message for a target user in a chat and returns success status; use it to remove temporary messages, noting recipients may not receive deletion events.
Instructions
Use this method to delete an ephemeral message. Note that it is not guaranteed that the user will receive the message deletion event, especially if they are offline. Returns True on success.
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": "deleteEphemeralMessage"
}
}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` | |
| receiver_user_id | Yes | Identifier of the user who received the message | |
| ephemeral_message_id | Yes | Identifier of the ephemeral message to delete |