Compare commits
3 Commits
d1ad0b16a1
...
dff39f025c
| Author | SHA1 | Date | |
|---|---|---|---|
| dff39f025c | |||
| 523ed89519 | |||
| 6a6d59394a |
@@ -234,13 +234,15 @@ async def instruct_router_handler(msg: Message):
|
||||
else:
|
||||
logger.info(f"User {cn} already has 2FA group. SD ticket creation skipped.")
|
||||
|
||||
# Показываем текст с результатом
|
||||
# Показываем текст с результатом и отправляем документ с caption
|
||||
text = INSTRUCT_TRUECONF_WITH_AD(EMOJI_DIGITS, cn, ticket_id)
|
||||
await msg.answer(text, parse_mode="html")
|
||||
|
||||
# Отправляем документ-инструкцию
|
||||
if os.path.isfile(TRUECONF_INSTRUCT_PATH):
|
||||
await msg.answer_document(FSInputFile(TRUECONF_INSTRUCT_PATH))
|
||||
await msg.bot.send_document(
|
||||
chat_id=msg.chat_id,
|
||||
file=FSInputFile(TRUECONF_INSTRUCT_PATH),
|
||||
caption=text,
|
||||
parse_mode="html"
|
||||
)
|
||||
elif cmd == "2":
|
||||
log_menu_stats(user_id, "Инструкции", "Почта")
|
||||
set_state(user_id, "INSTRUCT_EMAIL_VIEW")
|
||||
|
||||
Reference in New Issue
Block a user