Template
mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-08-26 15:07:43 +00:00
Update
This commit is contained in:
@@ -7,7 +7,7 @@ from tgbot.data.config import get_admins
|
||||
|
||||
# Проверка на админа
|
||||
class IsAdmin(BaseFilter):
|
||||
async def __call__(self, message: Message):
|
||||
async def __call__(self, message: Message) -> bool:
|
||||
if message.from_user.id in get_admins():
|
||||
return True
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user