telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

[Feature request] Add a method to delete all messages from a group member

Open CrisMystik opened this issue 10 months ago • 1 comments

I propose adding a method to the Bot API to delete all messages from a group member (possibly including other bots), like users can do already with the channels.deleteParticipantHistory MTProto method/deleteChatMessagesBySender TDLib method.

Related suggestion card: link

Use case

This method would allow bots to delete all user messages without having to store them and send multiple deleteMessages requests. Additionally, it could be useful for bots that block regular members from adding (malicious) bots but not users, allowing them to clear their messages after removing them.

CrisMystik avatar Jan 17 '25 12:01 CrisMystik