From f1684edef858c3c963f4ddc5c86464b0d6f1b019 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sat, 9 Aug 2025 22:17:02 +0300 Subject: [PATCH] update for new channel-helper --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 004e3ef..5fa3579 100644 --- a/main.py +++ b/main.py @@ -367,7 +367,7 @@ async def send_callback(cq: CallbackQuery): async with httpx.AsyncClient() as client: try: subdomain = 'ch' + 'sfw' if destination == 'pics' else 'nsfw' - r = await client.post(f'https://{subdomain}.bakatrouble.me/{upload_key}/', files={'upload': img_bytes}) + r = await client.post(f'https://{subdomain}.bakatrouble.me/{upload_key}/photo', files={'upload': img_bytes}) logging.info(r.text) resp = r.json() result = resp.get('result')