You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider this scenario (sadly, very typical these days):
Spambot1 joins chat1
Spambot2 joins chat2
Spambot3 joins chat3
All three bots send the same message text to the respective chats
Currently, I need to manually visit all the chats and invoke @dotnet_vahter_bot ban separately (because the bots are different users).
What I want is Grinder to automatically ban the Spambot2 and Spambot3 after I shown it the message text of Spambot1.
How to achieve that:
Whenever Grinder starts, it should read last N (N should be configurable limit, with a sensible default of, say, 25) messages in each of the connected chats, and store these messages in memory.
When a message arrives in any of the connected chats, Grinder should drop the earliest message saved and save a new one (FIFO order).
When a ban request arrives as a reply on the spam message, Grinder should compare that spam message with the saved messages from each of the connected chats. If it finds any match, it should delete the matched message and ban the corresponding users in each of the chats the message was posted.
The spam message should be saved to a separate global in-memory storage with another configurable limit of M (e.g. up to 10 messages, we don't need much here because of their variety).
When a new message is registered in any of the connected chats, Grinder should compare it with the M globally stored spam messages, and ban the user/delete the message on match.
The text was updated successfully, but these errors were encountered:
Should ignore too short text messages (e.g. messages smaler that some configurable limit, e.g. 25 characters) in case they contain no media/stickers to avoid mass ban for messages like "hello" or something like that.
Consider this scenario (sadly, very typical these days):
Currently, I need to manually visit all the chats and invoke
@dotnet_vahter_bot ban
separately (because the bots are different users).What I want is Grinder to automatically ban the Spambot2 and Spambot3 after I shown it the message text of Spambot1.
How to achieve that:
The text was updated successfully, but these errors were encountered: