Actions43
- Chat Actions
- Add Chat Members
- Close Chat
- Close Chat (Lite)
- Create SuperGroup or Channel
- Delete Chat
- Get Chat
- Get Chat History
- Get Chats
- Join Chat
- Mark Chat as Unread
- Open Chat
- Open Chat (Lite)
- Search Public Chat (by Username, Lite)
- Search Public Chat (by Username)
- Search Public Chats (Search in Username, Title)
- Send Chat Action
- Contact Actions
- Custom Request Actions
- File Actions
- Group Actions
- Login Actions
- Message Actions
- User Actions
Message → Delete Messages
AI-generatedSummary
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