TelePilot2 icon

TelePilot2

Your Personal Telegram CoPilot

Message → Delete Messages

AI-generated

Summary

Deletes one or more messages from a Telegram chat, optionally removing them from all recipients' inboxes.

Inputs

  • chat_id (required) — ID of the chat where the messages are located.
  • message_ids (required) — Comma-separated identifiers of the messages to delete.
  • revoke (required) — If true, deletes the messages for all chat members; if false, deletes them only for the sender.

Output shape

a list of items (one per input item) containing the API result object.

Returns the result from the Telegram API, typically indicating success or failure.

Examples

Example 1: Remove a specific message for everyone in a group chat.

Set revoke to true, chat_id to the group ID, and message_ids to '12345'.

Example 2: Delete a single message for the sender only.

Set revoke to false, chat_id to the chat ID, and message_ids to '67890'.

Links

Discussion