mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[reputation] Bypass antiflood for admins.
This commit is contained in:
@@ -74,7 +74,7 @@ public class Reputation : CommonHandler
|
||||
|
||||
if (canChangeRep && (RepUpChars.Contains(text) || RepDownChars.Contains(text)))
|
||||
{
|
||||
if (!_userService.IsUserSuper(From))
|
||||
if (!_userService.IsUserSuper(From) || !await Bot.IsUserAdminAsync(Chat, From))
|
||||
{
|
||||
if (_antiFlood.IsUserFlooding(Chat, From))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user