fix: add .docx extension to email instruction file names
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user