#16045·chatwoot

Delete outgoing Telegram messages on Telegram when an agent deletes them in Chatwoot

Author: fedorov-xyzCreated Sep 28, 2026Updated Sep 29, 2026
Labelsfeature-request📨 channel/telegram

Is your feature or enhancement related to a problem? Please describe.

When an agent deletes an outgoing message in a Telegram inbox, Chatwoot only soft-deletes it locally. The customer still sees the message in Telegram. Agents are misled, and there is no way to retract a message sent by mistake (wrong customer, typo, leaked personal data).

This was previously closed as a platform limitation in #8560 ("can't delete messages on other platforms due to API limitations"), but the examples given there were email and WhatsApp. Telegram does support this.

Telegram Bot API

  • deleteMessage: "A message can only be deleted if it was sent less than 48 hours ago" and "Bots can delete outgoing messages in private chats, groups, and supergroups."
  • deleteBusinessMessages for Business-mode bots (requires the can_delete_sent_messages business bot right; up to 100 ids per call, same chat).

Describe the solution you'd like

  1. On message delete in a Telegram inbox, if the message is outgoing and was sent < 48h ago, call deleteMessage(chat_id, message_id) (or deleteBusinessMessages when the conversation has a business_connection_id), then soft-delete locally as today.
  2. If Telegram rejects the request (older than 48h, missing rights), show the agent a clear error instead of silently deleting only in Chatwoot, or offer "delete only in Chatwoot".
  3. Store all Telegram message ids produced by one Chatwoot message. Currently SendOnTelegramService keeps only the last id when a message has text + attachments or a media group.
  4. (Optional) Handle deleted_business_messages updates to mark incoming business messages as deleted.

Related

  • #8560: closed as "not possible due to API limitations" (examples: email, WhatsApp)
  • #9472: references #8560
  • #1283: original delete/unsend request, suggested channel-native deletion where supported
  • #13684, #13685, #14894: hide/block delete on channels without real deletion. Telegram should be treated as a channel with deletion support rather than having the option hidden.
  • #13230: analogous request to edit outgoing Telegram messages (editMessageText, same 48h window)
  • #10181, #11663, #15374: Telegram Business support
  • #6601: Meta channels (genuinely no delete API, unlike Telegram)