secretlounge / secretlounge-ng

A bot to make an anonymous group chat on Telegram
118 stars 53 forks source link

Add "/delete_all" command #37

Closed sophronesis closed 2 years ago

sophronesis commented 2 years ago

I'm running secretlounge instance for several months now and I see that it is hard to do anything about spam. Yes, you can ban users, but removing 100+ messages with /remove command is really time-consuming so i added /delete_all for admin to use. It removes all messages from given user without warn or balcklisting them. Hope someone will find this usefull and add it to main project.

sfan5 commented 2 years ago

Sorry for the late response. I have a similar command in private use, /cleanup to delete all messages by users that are presently blacklisted. It's been a while but I'll work on publicizing the code now. Do you have a special usecase that requires to you remove messages without banning someone?

sophronesis commented 2 years ago

Nope, I just implemented it separately. Your /cleanup function would be sufficient for my usecases