fix: add .docx extension to email instruction file names

This commit is contained in:
Денис Кривоченко
2026-07-30 14:50:55 +07:00
parent 6f0f40a29e
commit 042ef92e98
+2 -2
View File
@@ -451,8 +451,8 @@ async def instruct_router_handler(msg: Message):
await msg.answer(text, parse_mode="html") await msg.answer(text, parse_mode="html")
# Затем отправляем оба документа отдельно # Затем отправляем оба документа отдельно
for instruct_path, file_name in [ for instruct_path, file_name in [
(GMAIL_ANDROID_INSTRUCT_PATH, "Инструкция Android"), (GMAIL_ANDROID_INSTRUCT_PATH, "Инструкция Android.docx"),
(APPLE_INSTRUCT_PATH, "Инструкция Apple"), (APPLE_INSTRUCT_PATH, "Инструкция Apple.docx"),
]: ]:
if os.path.isfile(instruct_path): if os.path.isfile(instruct_path):
await msg.bot.send_document( await msg.bot.send_document(