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

Create a way to clean up members who have left the group but are still opted in #14

Open
aquibm opened this issue Apr 23, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@aquibm
Copy link
Collaborator

commented Apr 23, 2019

At the moment, when a user leaves a group, there's no action on our end to remove them from the database. This means that users who are not part of the chat are still mentioned when someone mentions everyone and adds to the spam.

We should listen for the service messages with left_chat_member to automatically remove them from the db. We would also need to create an admin command to clean up the group by running through the db users and executing getChatMember to figure out whether they've already left the group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.