diff --git a/olgram/commands/info.py b/olgram/commands/info.py index c7eb568..881576e 100644 --- a/olgram/commands/info.py +++ b/olgram/commands/info.py @@ -16,7 +16,8 @@ async def info(message: types.Message, state: FSMContext): Команда /info """ - if message.from_user.id != OlgramSettings.supervisor_id(): + if message.chat.id != OlgramSettings.supervisor_id(): + await message.answer("Недостаточно прав") return bots_count = len(await models.Bot.all())