From 1bdfd163fe1b69f13e7178b987e8964871b5c7b0 Mon Sep 17 00:00:00 2001 From: dddennnisss Date: Fri, 21 Aug 2026 22:25:19 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=BE=D1=82=D0=BE:=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=20=D1=81=D1=82=D0=B0=D1=82=D1=83?= =?UTF-8?q?=D1=81=D0=B0=20=D0=B2=D0=BD=D1=83=D1=82=D1=80=D0=B8=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B6=D0=B8=D0=BC=D0=B0=20=D1=82=D0=BE=D0=B6=D0=B5=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82=20=D0=B2=20?= =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=D0=BE=D0=B2=D0=BE=D0=BC=20=D1=80=D0=B5?= =?UTF-8?q?=D0=B6=D0=B8=D0=BC=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__pycache__/handlers.cpython-313.pyc | Bin 24878 -> 24828 bytes photo_bot/handlers.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/photo_bot/__pycache__/handlers.cpython-313.pyc b/photo_bot/__pycache__/handlers.cpython-313.pyc index 427a5a1c7a7d5d4602d9f239176c3e38a34c2de6..1dec9c5d0f39ff2600a0f3d5afea56168b1192ec 100644 GIT binary patch delta 1226 zcmX|;%WoQ26vpQ;cX-Sg2~5De9WYcFFg6%s3Y47iXuCa;>6gIr3A@&E#hDvcDv}g*Ggyc&F|drJLevT z)xY51Kf&6yT4e#B-Osy&9i>6Ln#c`?%391=#tE?_yak~K39JyUo3s~IAK{ZeA zoKl@wtSeA0lJyb7*gmrC5Y_|sYFS)Qy@kAS0+wxL!$}x>GMKrmfaV~ryCZ4>t9x^x zxyZfzY1V#!0W=S}Ut+g!dO-7&O|Qy~2SL!r$%Apuk)W0p9vVOklZT>e#bV0_T9jZBE>4B~=er&m?=@B0h7eEcZMQbsu>?uM#X?l%O6YFUpKx8rUW;$(iYTM0hm| z^$>ZLC5-c@o4wV2o|dukJ6e++6~W8Wi? z#&Al+=x|1ER7}GHYd(}%^P!omA~&7lp>w8b6OSZlnvF+BiLoN#Dn~X6-6N;ibnAzg Ga^inl_*TpS delta 1279 zcmY+B%WE4~6vpT1-WgdVjbllT97&d}JY?k2%a&}}k|Kq%(o#a3(il@ho039Sp>HHj zq>X4xNxSH3HrAEl3i@U~tHx~OlBLZU%)e_g@Tb1wj;5Ut%isf5wpw?QdP?@I;NUbjOjM(YlCdp!oFX)iPrhWr;L$9o9DS4uB0u(mO6cRU z9P+LkRDte#*si6;Cj0L5aW%~y41t=W2Nud$a$xDfxTC_8gXt{tvj|j1>9c4Uxp@LA z9@=!X5ltT((e!&6r=e2w(PqX7@@&x-WpT@FsA#BU=!l_Cv3Sbd@>%dtY=y*9khBt^ zQh>BQ0(P|nJf5_JY)(7O>f13xrwyGkbPn(FV8r@<0?l%9@8V4RHORpm09vHSzcsG diff --git a/photo_bot/handlers.py b/photo_bot/handlers.py index a983161..dd53d4b 100644 --- a/photo_bot/handlers.py +++ b/photo_bot/handlers.py @@ -230,9 +230,9 @@ async def photo_module_handler(msg: Message): await msg.answer(MENU_TEXT, parse_mode="html") return - # --- ПЕРВАЯ ПРОВЕРКА: если нет фото в pending_photos, проверяем статус модерации --- - # (в тестовом моде API не трогаем — фото никуда не публикуется) - if user_id not in pending_photos and not is_attachment and not config.PHOTO_TEST_MODE: + # --- ПРОВЕРКА СТАТУСА: если нет фото в pending_photos, проверяем статус модерации --- + # (в тестовом режиме статусы тоже показываем — поведение как в обычном режиме) + if user_id not in pending_photos and not is_attachment: status = await check_moderation_status(user_id) if status.get("status") == "ok" and status.get("moderation_status") == "pending": photo_id = status.get("photo_id", "???")