This commit is contained in:
2023-03-28 11:15:03 +03:00
parent 61456b1044
commit d4349f1029
4 changed files with 51 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ class BotAdmin(BoundFilter):
self.admin = admin
async def check(self, message: types.Message):
if message.from_user.id in config.admin_user:
if message.from_user.id in [int(i) for i in config.admin_users.split(",")]:
return True
else:
await message.answer("Хорошая попытка, но ты не администратор!")