1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-12-17 11:56:17 +00:00

html support in /start message

This commit is contained in:
mihalin
2022-06-24 23:58:59 +03:00
parent 4063f9f336
commit 944c5ce002
3 changed files with 35 additions and 5 deletions

View File

@@ -335,7 +335,7 @@ async def start_text_received(message: types.Message, state: FSMContext):
async with state.proxy() as proxy:
bot_id = proxy.get("bot_id")
bot = await Bot.get_or_none(pk=bot_id)
bot.start_text = message.text
bot.start_text = message.html_text
await bot.save()
await send_bot_text_menu(bot, chat_id=message.chat.id)
@@ -345,7 +345,7 @@ async def second_text_received(message: types.Message, state: FSMContext):
async with state.proxy() as proxy:
bot_id = proxy.get("bot_id")
bot = await Bot.get_or_none(pk=bot_id)
bot.second_text = message.text
bot.second_text = message.html_text
await bot.save()
await send_bot_second_text_menu(bot, chat_id=message.chat.id)