Telegram Bot icon

Telegram Bot

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

Actions101

Message → Delete Message

AI-generated

Summary

Delete a specific message in a Telegram chat by providing the chat identifier and the message's unique identifier.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username (@channelusername) where the message to delete is located.
  • Message ID (required) — Unique identifier of the target message to be deleted from the chat.

Output shape

a single JSON object indicating the result of the delete operation

The output contains the result of the Telegram API 'deleteMessage' method; success is typically a boolean true. Errors are handled as Node API errors or can be returned as error messages if 'Continue On Fail' is enabled.

Examples

Example 1: Deleting a message from a chat

Set Resource to 'Message', Operation to 'Delete Message'. Provide the required 'Chat ID' and 'Message ID' parameters.

Links

Discussion