telegram-bot-api
telegram-bot-api copied to clipboard
[Feature request] Add a method to delete all messages from a group member
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.