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

Add the ability to delete the system message about joining a group #92

Closed
umputun opened this issue Jun 3, 2024 Discussed in #91 · 3 comments
Closed

Add the ability to delete the system message about joining a group #92

umputun opened this issue Jun 3, 2024 Discussed in #91 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@umputun
Copy link
Owner

umputun commented Jun 3, 2024

Discussed in #91

Originally posted by fear-rus June 3, 2024
I suggest adding the ability to delete the system message about joining the group after deleting the message and banning the user. When there is a lot of spam, and the bot deletes it, then there are system messages about joining, which look like spam pages in the group. Is it possible to automatically delete messages about joining a group of spambots that have been deleted?

@umputun umputun added the help wanted Extra attention is needed label Jun 3, 2024
@ninedraft
Copy link

Yes, it's totally possible with right admin rights for bot to delete such messages. Do you want to delete all "user X joined" messages or only spamers? In the second case I think bot need some KV user-id -> user-joined-messsage-ID storage.

This feature seems to be quite simple. If you don't mind, I can take it for implementation

@umputun
Copy link
Owner Author

umputun commented Jul 22, 2024

Do you want to delete all "user X joined" messages or only spamers? In the second case I think bot need some KV user-id -> user-joined-messsage-ID storage.

yes, this is the intent. The bot already has a store (sqlite) and you can either add just another table, or update storage.Locator to handle join messages.

coperius added a commit to coperius/tg-spam that referenced this issue Aug 8, 2024
- add deletion of the group "new member" message when a user is kicked from the group
- add tests
@coperius
Copy link
Contributor

coperius commented Aug 8, 2024

Whether to delete messages about removing a user from a group?

umputun pushed a commit that referenced this issue Sep 14, 2024
Delete the system message about joining a group (issue #92)

- add deletion of the group "new member" message when a user is kicked from the group
- add tests
- Add `suppress-join-message` option
- add 'suppress-join-message' option
- add tests
-  Some refactoring
- change procNewChatMemberMessage logic
- delete comment

by @coperius
@umputun umputun closed this as completed Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants