fix: use system_error_text for photo unknown command

This commit is contained in:
Денис Кривоченко
2026-07-30 23:39:23 +07:00
parent edbb1bbc95
commit 4fbca23c6b
+3 -2
View File
@@ -19,7 +19,7 @@ from photo_bot.photo_processor import prepare_ad_photo
from utils.texts import ( from utils.texts import (
EMOJI_DIGITS, EMOJI_DIGITS,
PHOTO_MAIN_MENU_TEXT, PHOTO_MAIN_MENU_TEXT,
PHOTO_UNKNOWN_CMD_TEXT, system_error_text,
photo_error_handling, photo_error_handling,
PHOTO_UPLOADING_TEXT, PHOTO_UPLOADING_TEXT,
photo_success_sent, photo_success_sent,
@@ -188,7 +188,7 @@ async def photo_module_handler(msg: Message):
# --- ИСПРАВЛЕНО: Защита от мусорного ввода при висящем превью --- # --- ИСПРАВЛЕНО: Защита от мусорного ввода при висящем превью ---
else: else:
await msg.answer(PHOTO_UNKNOWN_CMD_TEXT, parse_mode="html") await msg.answer(system_error_text(EMOJI_DIGITS), parse_mode="html")
return return
# --- ПРИЕМ НОВОГО ФОТО --- # --- ПРИЕМ НОВОГО ФОТО ---
@@ -240,3 +240,4 @@ async def photo_module_handler(msg: Message):
except Exception as cleanup_err: except Exception as cleanup_err:
await asyncio.to_thread(log_and_notify_photo_error, user_id, "Очистка временных файлов", str(cleanup_err)) await asyncio.to_thread(log_and_notify_photo_error, user_id, "Очистка временных файлов", str(cleanup_err))
return return