Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CrisMystik opened this issue Jan 17, 2025 · 1 comment

Comments

@CrisMystik
Copy link

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.

@levlam
Copy link
Contributor

levlam commented Jan 18, 2025

The method channels.deleteParticipantHistory can't be allowed for bots, because they must receive response fast enough and the method may need to delete millions messages, which will take minutes to complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants