fix: use system_error_text for photo unknown command
This commit is contained in:
@@ -19,7 +19,7 @@ from photo_bot.photo_processor import prepare_ad_photo
|
||||
from utils.texts import (
|
||||
EMOJI_DIGITS,
|
||||
PHOTO_MAIN_MENU_TEXT,
|
||||
PHOTO_UNKNOWN_CMD_TEXT,
|
||||
system_error_text,
|
||||
photo_error_handling,
|
||||
PHOTO_UPLOADING_TEXT,
|
||||
photo_success_sent,
|
||||
@@ -188,7 +188,7 @@ async def photo_module_handler(msg: Message):
|
||||
|
||||
# --- ИСПРАВЛЕНО: Защита от мусорного ввода при висящем превью ---
|
||||
else:
|
||||
await msg.answer(PHOTO_UNKNOWN_CMD_TEXT, parse_mode="html")
|
||||
await msg.answer(system_error_text(EMOJI_DIGITS), parse_mode="html")
|
||||
return
|
||||
|
||||
# --- ПРИЕМ НОВОГО ФОТО ---
|
||||
@@ -240,3 +240,4 @@ async def photo_module_handler(msg: Message):
|
||||
except Exception as cleanup_err:
|
||||
await asyncio.to_thread(log_and_notify_photo_error, user_id, "Очистка временных файлов", str(cleanup_err))
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user