From 3725e3fff2838816c64897a0afa27f3b01366faa Mon Sep 17 00:00:00 2001 From: mihalin Date: Tue, 17 May 2022 11:34:48 +0300 Subject: [PATCH] fix notify --- olgram/commands/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/olgram/commands/admin.py b/olgram/commands/admin.py index 9e41976..a5fcdfc 100644 --- a/olgram/commands/admin.py +++ b/olgram/commands/admin.py @@ -74,7 +74,7 @@ async def on_notify_message_confirm(message: types.Message, state: FSMContext): data = await state.get_data() bot = await models.Bot.get(pk=data["notify_to_bot"]) text = data["notify_text"] - chat_id = await bot.super_chat_id() + chat_id = (await bot.owner).telegram_id await state.reset_state(with_data=True) await message.bot.send_message(chat_id, text=text)