feat(practice): render suggestions as Telegram spoilers (<span class="tg-spoiler">)
This commit is contained in:
@@ -112,7 +112,7 @@ async def start_scenario(callback: CallbackQuery, state: FSMContext):
|
|||||||
)
|
)
|
||||||
|
|
||||||
for suggestion in conversation_start.get('suggestions', []):
|
for suggestion in conversation_start.get('suggestions', []):
|
||||||
text += f"• {suggestion}\n"
|
text += f"<span class=\"tg-spoiler\">• {suggestion}</span>\n"
|
||||||
|
|
||||||
text += t(ui_lang, 'practice.write_or_stop')
|
text += t(ui_lang, 'practice.write_or_stop')
|
||||||
|
|
||||||
@@ -252,7 +252,7 @@ async def handle_conversation(message: Message, state: FSMContext):
|
|||||||
if suggestions:
|
if suggestions:
|
||||||
text += t(ui_lang2, 'practice.hints') + "\n"
|
text += t(ui_lang2, 'practice.hints') + "\n"
|
||||||
for suggestion in suggestions[:3]:
|
for suggestion in suggestions[:3]:
|
||||||
text += f"• {suggestion}\n"
|
text += f"<span class=\"tg-spoiler\">• {suggestion}</span>\n"
|
||||||
|
|
||||||
# Сохраняем перевод под новым индексом
|
# Сохраняем перевод под новым индексом
|
||||||
translations = data.get('translations', {}) or {}
|
translations = data.get('translations', {}) or {}
|
||||||
|
|||||||
Reference in New Issue
Block a user