handlers.py: photo_moderation_pending из texts.py
This commit is contained in:
@@ -28,6 +28,7 @@ from utils.texts import (
|
|||||||
photo_error_already_pending,
|
photo_error_already_pending,
|
||||||
photo_cancel_text,
|
photo_cancel_text,
|
||||||
photo_preview_ready,
|
photo_preview_ready,
|
||||||
|
photo_moderation_pending,
|
||||||
)
|
)
|
||||||
|
|
||||||
# 🔌 Импортируем централизованную функцию сбора статистики из main
|
# 🔌 Импортируем централизованную функцию сбора статистики из main
|
||||||
@@ -176,9 +177,7 @@ async def photo_module_handler(msg: Message):
|
|||||||
if status.get("status") == "ok" and status.get("moderation_status") == "pending":
|
if status.get("status") == "ok" and status.get("moderation_status") == "pending":
|
||||||
photo_id = status.get("photo_id", "???")
|
photo_id = status.get("photo_id", "???")
|
||||||
await msg.answer(
|
await msg.answer(
|
||||||
f"⏳ <b>У вас уже есть фото на модерации (ID: {photo_id}).</b>\n\n"
|
photo_moderation_pending(photo_id),
|
||||||
f"Ожидайте решения модератора.\n\n"
|
|
||||||
f"{EMOJI_DIGITS['0']} — В главное меню",
|
|
||||||
parse_mode="html"
|
parse_mode="html"
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user