Actions101
- Bot Actions
- Chat Actions
- Get Chat
- Get Chat Administrators
- Get Chat Member Count
- Get Chat Member
- Ban Chat Member
- Unban Chat Member
- Restrict Chat Member
- Promote Chat Member
- Set Chat Administrator Custom Title
- Set Chat Permissions
- Export Chat Invite Link
- Create Chat Invite Link
- Edit Chat Invite Link
- Revoke Chat Invite Link
- Approve Chat Join Request
- Decline Chat Join Request
- Set Chat Photo
- Delete Chat Photo
- Set Chat Title
- Set Chat Description
- Pin Chat Message
- Unpin Chat Message
- Unpin All Chat Messages
- Leave Chat
- Set Chat Menu Button
- Get Chat Menu Button
- Set Chat Sticker Set
- Delete Chat Sticker Set
- File Actions
- Forum Actions
- Game Actions
- Inline Actions
- Message Actions
- Send Message
- Forward Message
- Copy Message
- Send Photo
- Send Audio
- Send Document
- Send Video
- Send Animation
- Send Voice
- Send Video Note
- Send Media Group
- Send Location
- Send Venue
- Send Contact
- Send Poll
- Send Dice
- Send Chat Action
- Edit Message Text
- Edit Message Caption
- Edit Message Media
- Edit Message Reply Markup
- Edit Message Live Location
- Stop Message Live Location
- Stop Poll
- Delete Message
- Delete Messages
- Payment Actions
- Sticker Actions
- Update Actions
- Webhook Actions
Message → Delete Messages
AI-generatedSummary
Delete multiple messages in a specified chat by providing the chat identifier and an array of message IDs.
Inputs
- Chat ID (required) — Unique identifier for the target chat or username (@channelusername).
- Message IDs (JSON) (required) — JSON array of message IDs to delete, e.g. [1, 2, 3].
Output shape
a list of results indicating deletion success or error for each message ID requested.
Returns the Telegram API response result for each deleted message if successful. If an error occurs, an error message is included. The 'message_ids' input must be parsed from JSON to an array.
Examples
Example 1: Delete several messages in a chat named '@examplechannel' with message IDs 10, 11, and 12
Set 'Chat ID' to '@examplechannel' and 'Message IDs (JSON)' to '[10, 11, 12]'.