mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Notification when user is flooding, fixes
This commit is contained in:
@@ -82,6 +82,13 @@ public class Reputation : CommonHandler
|
||||
}
|
||||
|
||||
_antiFlood.RecordAction(Chat, From);
|
||||
if (_antiFlood.IsUserFlooding(Chat, From))
|
||||
{
|
||||
await Reply(new HtmlString()
|
||||
.UserMention(From).Pre(": пользователь отправлен в игнор.")
|
||||
.ToString());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var senderRepCount = await GetUserReputation(From);
|
||||
|
||||
Reference in New Issue
Block a user