Skip to content

Commit

Permalink
antiflood: Don't try to mute group's linked channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel2392 authored and itsLuuke committed May 7, 2023
1 parent 3997467 commit c887216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AstrakoBot/modules/antiflood.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def check_flood(update: Update, context: CallbackContext) -> str:
if not user: # ignore channels
return ""

# ignore admins and whitelists
if is_user_admin(chat, user.id) or user.id in WHITELIST_USERS:
# ignore admins, whitelists and telegram's native tech
if is_user_admin(chat, user.id) or user.id in WHITELIST_USERS or user.id == 777000:
sql.update_flood(chat.id, None)
return ""
# ignore approved users
Expand Down

0 comments on commit c887216

Please sign in to comment.