From 971fd178f268791c374109390fe1552a46498b15 Mon Sep 17 00:00:00 2001 From: mihalin Date: Fri, 24 Dec 2021 19:46:46 +0300 Subject: [PATCH] info --- olgram/commands/info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())