fix: attach TrueConf instruction docx when ticket already exists (no 2FA)
This commit is contained in:
@@ -412,7 +412,15 @@ async def instruct_router_handler(msg: Message):
|
||||
if existing_ticket:
|
||||
set_state(user_id, "INSTRUCT_TRUECONF_VIEW")
|
||||
text = INSTRUCT_TRUECONF_WITH_AD(EMOJI_DIGITS, cn, existing_ticket)
|
||||
await msg.answer(text, parse_mode="html")
|
||||
if os.path.isfile(TRUECONF_INSTRUCT_PATH):
|
||||
await msg.bot.send_document(
|
||||
chat_id=msg.chat_id,
|
||||
file=FSInputFile(TRUECONF_INSTRUCT_PATH, file_name="Инструкция.docx"),
|
||||
caption=text,
|
||||
parse_mode="html"
|
||||
)
|
||||
else:
|
||||
await msg.answer(text, parse_mode="html")
|
||||
else:
|
||||
set_state(user_id, "INSTRUCT_TRUECONF_PENDING")
|
||||
text = INSTRUCT_TRUECONF_PENDING_TEXT(EMOJI_DIGITS, cn)
|
||||
|
||||
Reference in New Issue
Block a user