fix: attach TrueConf instruction docx when ticket already exists (no 2FA)
This commit is contained in:
@@ -412,6 +412,14 @@ async def instruct_router_handler(msg: Message):
|
|||||||
if existing_ticket:
|
if existing_ticket:
|
||||||
set_state(user_id, "INSTRUCT_TRUECONF_VIEW")
|
set_state(user_id, "INSTRUCT_TRUECONF_VIEW")
|
||||||
text = INSTRUCT_TRUECONF_WITH_AD(EMOJI_DIGITS, cn, existing_ticket)
|
text = INSTRUCT_TRUECONF_WITH_AD(EMOJI_DIGITS, cn, existing_ticket)
|
||||||
|
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")
|
await msg.answer(text, parse_mode="html")
|
||||||
else:
|
else:
|
||||||
set_state(user_id, "INSTRUCT_TRUECONF_PENDING")
|
set_state(user_id, "INSTRUCT_TRUECONF_PENDING")
|
||||||
|
|||||||
Reference in New Issue
Block a user