Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Message → Delete Messages

AI-generated

Summary

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]'.

Links

Discussion