Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Message → Delete Messages

AI-generated

Summary

Delete specified messages from a chat, optionally revoking them for all users.

Inputs

  • chat_id (required) — Identifier of the chat from which to delete messages.
  • message_ids (required) — Comma-separated list of message IDs to delete or forward.
  • revoke (required) — Whether the deleted messages should be removed for all users in the chat.

Output shape

object

Returns the result object from the Telegram deleteMessages API; typically includes an 'ok' flag and may contain additional metadata.

Examples

Example 1: Delete three messages in a supergroup

chat_id=123456789, message_ids='123,456,789', revoke=true

Example 2: Delete messages without revoking for others

chat_id=987654321, message_ids='100', revoke=false

Links

Discussion