Remove all chat messages when kicking user #44
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
backmeupplz/banofbot#44
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, I find that banofbot is a very good bot, however it seems that when kicking a user, the user is banned and only one message is deleted, I hope there can be a option to delete all chat history of this user.
banofbot uses api kickChatMember, which is renamed to banChatMember, according to api changelog , the old one is still useable, and it has a option "revoke_messages" to delete all messages from the chat for the user that is being removed . I don't know about node bot api, but maybe we can try to add this option? Theoretically it should work. It will be very helpful, thanks.
Hm, this sounds helpful
Not sure if I have the capacity to pick this task up though :( but happy to review and merge PRs!
revoke_messages does NOT delete the messages in the chat for the rest of the users, it deleted them for the user that is being banned.
The difference between setting it to true and false is that in once case the chat will stay for the banned user and he can see everything up to the point he was banned. If its set to true the chat will disappear.
This is only for legacy groups so in almost all cases this parameter is ignored anyway.