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."deleteBusinessMessagesfor Business-mode bots (requires thecan_delete_sent_messagesbusiness bot right; up to 100 ids per call, same chat).
Describe the solution you'd like
- On message delete in a Telegram inbox, if the message is outgoing and was sent < 48h ago, call
deleteMessage(chat_id, message_id)(ordeleteBusinessMessageswhen the conversation has abusiness_connection_id), then soft-delete locally as today. - 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".
- Store all Telegram message ids produced by one Chatwoot message. Currently
SendOnTelegramServicekeeps only the last id when a message has text + attachments or a media group. - (Optional) Handle
deleted_business_messagesupdates 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)
Source: chatwoot/chatwoot