This commit is contained in:
dj
2023-04-06 06:51:53 +03:00
parent 35bf80d783
commit fc98213031
4 changed files with 35 additions and 24 deletions
+1 -1
View File
@@ -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: