Фото: уведомление о причине отказа модерации при входе в модуль

This commit is contained in:
dddennnisss
2026-08-21 20:05:18 +07:00
parent 1ea42a9197
commit c358d4cbbb
2 changed files with 18 additions and 1 deletions
+10
View File
@@ -245,6 +245,13 @@ def _photo_moderation_pending(photo_id: str, emojis: dict) -> str:
f"{emojis['0']}В главное меню"
)
def _photo_rejected_notice(reason: str, emojis: dict) -> str:
return (
f"⚠️ <b>Ваше предыдущее фото было отклонено.</b>\n\n"
f"📝 Причина: {reason}\n\n"
f"Пожалуйста, отправьте новое фото."
)
def _photo_test_welcome(emojis: dict) -> str:
return (
f"🧪 <b>Тестовый режим фото-проверки</b>\n\n"
@@ -371,6 +378,9 @@ def photo_cancel_text() -> str:
def photo_moderation_pending(photo_id: str) -> str:
return _photo_moderation_pending(photo_id, EMOJI_DIGITS)
def photo_rejected_notice(reason: str) -> str:
return _photo_rejected_notice(reason, EMOJI_DIGITS)
PHOTO_TEST_WELCOME_TEXT = _photo_test_welcome(EMOJI_DIGITS)
PHOTO_TEST_PREVIEW_TEXT = _photo_test_preview(EMOJI_DIGITS)
PHOTO_TEST_AI_CHECKING_TEXT = _photo_test_ai_checking(EMOJI_DIGITS)