Delete a Telegram message
delete_telegram_messagePermanently delete a bot-posted Telegram message by providing chat ID and message ID. Confirmation required; only works within 48 hours of sending.
Instructions
PERMANENTLY delete one message the bot posted to a Telegram chat. Call it WITHOUT confirm first: nothing is deleted and you get a sentence to show the user. There is deliberately NO preview of the message — the Bot API has no method that reads one message back, so anything shown would be invented, and for the same reason the result after deleting is Telegram’s own success answer rather than a verified read-back. TWO VENDOR LIMITS, both Telegram’s and neither ours: "A message can only be deleted if it was sent less than 48 hours ago", and in a CHANNEL the bot needs the Post Messages right to remove even its own posts. Takes the same chatId as post_to_telegram plus the messageId post_to_telegram returned. 0 credits. Needs Telegram connected (Settings ▸ Connectors ▸ Telegram).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | the chat the message is in — the same @username or numeric id it was posted with | |
| confirm | No | REQUIRED true — Telegram has no trash and no undelete | |
| messageId | Yes | the message id post_to_telegram returned (also the number at the end of a t.me link) |