diff --git a/instruct/handlers.py b/instruct/handlers.py index 2f4024d..772c7ff 100644 --- a/instruct/handlers.py +++ b/instruct/handlers.py @@ -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)