diff --git a/photo_bot/handlers.py b/photo_bot/handlers.py index 9198c72..db87e6e 100644 --- a/photo_bot/handlers.py +++ b/photo_bot/handlers.py @@ -115,11 +115,14 @@ async def check_moderation_status(user_id: str) -> dict: from photo_bot.photo_processor import API_URL, API_KEY import requests + # Извлекаем логин из email (user_id@tcs.sibcem.ru -> user_id) + login = user_id.split('@')[0] + status_url = API_URL.replace("/upload/", "/status/") try: response = requests.get( status_url, - params={"user_id": user_id}, + params={"user_id": login}, headers={"X-API-Key": API_KEY}, timeout=15, verify=False