handlers.py: photo_moderation_pending из texts.py

This commit is contained in:
2026-08-14 14:13:33 +07:00
parent 7aa2d92b8b
commit 966b8d4774
+2 -3
View File
@@ -28,6 +28,7 @@ from utils.texts import (
photo_error_already_pending,
photo_cancel_text,
photo_preview_ready,
photo_moderation_pending,
)
# 🔌 Импортируем централизованную функцию сбора статистики из main
@@ -176,9 +177,7 @@ async def photo_module_handler(msg: Message):
if status.get("status") == "ok" and status.get("moderation_status") == "pending":
photo_id = status.get("photo_id", "???")
await msg.answer(
f"⏳ <b>У вас уже есть фото на модерации (ID: {photo_id}).</b>\n\n"
f"Ожидайте решения модератора.\n\n"
f"{EMOJI_DIGITS['0']}В главное меню",
photo_moderation_pending(photo_id),
parse_mode="html"
)
return