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's unique identifier and the message's unique identifier.

Inputs

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

Output shape

a single record indicating the operation result, typically an object with a boolean 'result' field showing success or failure.

The operation calls the Telegram API's 'deleteMessage' method and returns the API response result. Errors are propagated unless 'Continue On Fail' is enabled in the node settings.

Examples

Example 1: Deleting a message

Set 'Chat ID' to the target chat identifier, and 'Message ID' to the message you want to delete.

Links

Discussion