fix notify

This commit is contained in:
mihalin 2022-05-17 11:34:48 +03:00
parent 2891d1cd8b
commit 3725e3fff2

View File

@ -74,7 +74,7 @@ async def on_notify_message_confirm(message: types.Message, state: FSMContext):
data = await state.get_data() data = await state.get_data()
bot = await models.Bot.get(pk=data["notify_to_bot"]) bot = await models.Bot.get(pk=data["notify_to_bot"])
text = data["notify_text"] 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 state.reset_state(with_data=True)
await message.bot.send_message(chat_id, text=text) await message.bot.send_message(chat_id, text=text)