fix: instruct_main_menu_text() now uses EMOJI_DIGITS instead of undefined emojis
This commit is contained in:
@@ -10,6 +10,7 @@ from utils.texts import (
|
|||||||
instruct_main_menu_text,
|
instruct_main_menu_text,
|
||||||
instruct_tc_text,
|
instruct_tc_text,
|
||||||
instruct_email_text,
|
instruct_email_text,
|
||||||
|
EMOJI_DIGITS,
|
||||||
)
|
)
|
||||||
|
|
||||||
INSTRUCT_MAIN_MENU_TEXT = instruct_main_menu_text
|
INSTRUCT_MAIN_MENU_TEXT = instruct_main_menu_text
|
||||||
@@ -20,7 +21,7 @@ INSTRUCT_MAIN_MENU_TEXT = instruct_main_menu_text
|
|||||||
|
|
||||||
async def send_instruct_main_menu(msg: Message, user_id: str):
|
async def send_instruct_main_menu(msg: Message, user_id: str):
|
||||||
"""Send the Instruct main menu to the user."""
|
"""Send the Instruct main menu to the user."""
|
||||||
await msg.answer(instruct_main_menu_text(), parse_mode="html")
|
await msg.answer(instruct_main_menu_text(EMOJI_DIGITS), parse_mode="html")
|
||||||
|
|
||||||
|
|
||||||
# SETUP
|
# SETUP
|
||||||
@@ -65,7 +66,7 @@ async def instruct_main_handler(msg: Message):
|
|||||||
if user_id not in instruct_sessions:
|
if user_id not in instruct_sessions:
|
||||||
instruct_sessions[user_id] = {"step": "choose_option", "selected": None}
|
instruct_sessions[user_id] = {"step": "choose_option", "selected": None}
|
||||||
|
|
||||||
await msg.answer(instruct_main_menu_text(), parse_mode="html")
|
await msg.answer(instruct_main_menu_text(EMOJI_DIGITS), parse_mode="html")
|
||||||
instruct_logger.info(f"Instruct main menu shown for user {user_id}")
|
instruct_logger.info(f"Instruct main menu shown for user {user_id}")
|
||||||
|
|
||||||
@router.message()
|
@router.message()
|
||||||
|
|||||||
Reference in New Issue
Block a user