text fixes

This commit is contained in:
mihalin 2022-03-17 11:25:06 +03:00
parent 9d5bf0de53
commit f860fb1815

View File

@ -157,7 +157,7 @@ async def send_bot_settings_menu(bot: Bot, call: types.CallbackQuery):
chat=empty)) chat=empty))
) )
keyboard.insert( keyboard.insert(
types.InlineKeyboardButton(text="Дополнительная информация", types.InlineKeyboardButton(text="Данные пользователя",
callback_data=menu_callback.new(level=3, bot_id=bot.id, operation="additional_info", callback_data=menu_callback.new(level=3, bot_id=bot.id, operation="additional_info",
chat=empty)) chat=empty))
) )
@ -171,7 +171,7 @@ async def send_bot_settings_menu(bot: Bot, call: types.CallbackQuery):
info_turn = "включена" if bot.enable_additional_info else "выключена" info_turn = "включена" if bot.enable_additional_info else "выключена"
text = dedent(f""" text = dedent(f"""
<a href="https://olgram.readthedocs.io/ru/latest/options.html#threads">Потоки сообщений</a>: <b>{thread_turn}</b> <a href="https://olgram.readthedocs.io/ru/latest/options.html#threads">Потоки сообщений</a>: <b>{thread_turn}</b>
<a href="https://olgram.readthedocs.io/ru/latest/options.html#user_info">Данные пользователя</a>: <b>{info_turn}</b> <a href="https://olgram.readthedocs.io/ru/latest/options.html#user-info">Данные пользователя</a>: <b>{info_turn}</b>
""") """)
await edit_or_create(call, text, reply_markup=keyboard, parse_mode="HTML") await edit_or_create(call, text, reply_markup=keyboard, parse_mode="HTML")