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 Telegram 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 items, each representing the result of the API call (typically a boolean indicating success).
The output contains the Telegram API response result. If multiple messages are deleted, the responses are returned as separate items. Errors are returned in the workflow if the call fails and 'continue on fail' is enabled.
Examples
Example 1: Delete messages with IDs 123 and 124 in chat '@examplechannel'
Set 'Chat ID' to '@examplechannel' and 'Message IDs (JSON)' to '[123, 124]'.