Add weekly report, multi-admin, docker health cmd, backup tail, openwrt filters
This commit is contained in:
6
auth.py
6
auth.py
@@ -1,10 +1,10 @@
|
||||
from aiogram.types import Message, CallbackQuery
|
||||
from app import ADMIN_ID
|
||||
from app import ADMIN_IDS
|
||||
|
||||
|
||||
def is_admin_msg(msg: Message) -> bool:
|
||||
return msg.from_user and msg.from_user.id == ADMIN_ID
|
||||
return msg.from_user and msg.from_user.id in ADMIN_IDS
|
||||
|
||||
|
||||
def is_admin_cb(cb: CallbackQuery) -> bool:
|
||||
return cb.from_user and cb.from_user.id == ADMIN_ID
|
||||
return cb.from_user and cb.from_user.id in ADMIN_IDS
|
||||
|
||||
Reference in New Issue
Block a user