fix: separate text for email access not had case

This commit is contained in:
Денис Кривоченко
2026-07-30 21:24:21 +07:00
parent e550e657fe
commit 9f737d3282
2 changed files with 14 additions and 2 deletions
+3 -1
View File
@@ -20,6 +20,7 @@ from utils.texts import (
INSTRUCT_TRUECONF_PENDING_TEXT,
INSTRUCT_EMAIL_AVAILABLE,
INSTRUCT_EMAIL_HISTORY_ASK,
INSTRUCT_EMAIL_NOT_HAD,
INSTRUCT_EMAIL_UNAVAILABLE,
INSTRUCT_ERROR_MSG,
)
@@ -515,7 +516,7 @@ async def instruct_router_handler(msg: Message):
if cn is None:
cn = user_id
set_state(user_id, "INSTRUCT_EMAIL_VIEW")
text = INSTRUCT_EMAIL_UNAVAILABLE(EMOJI_DIGITS, cn)
text = INSTRUCT_EMAIL_NOT_HAD(EMOJI_DIGITS, cn)
await msg.answer(text, parse_mode="html")
else:
await msg.answer(UNKNOWN_MAIN_CMD_TEXT, parse_mode="html")
@@ -531,3 +532,4 @@ async def instruct_router_handler(msg: Message):
await msg.answer(INSTRUCT_MAIN_MENU_TEXT, parse_mode="html")
else:
await msg.answer(UNKNOWN_MAIN_CMD_TEXT, parse_mode="html")