From abb4570958087f6014ad5b6a41c1a410c0a88afa Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sat, 9 Aug 2025 23:06:18 +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 1ea55ea..ca0f58d 100644 --- a/main.py +++ b/main.py @@ -366,7 +366,7 @@ async def send_callback(cq: CallbackQuery): img_bytes.seek(0) async with httpx.AsyncClient() as client: try: - subdomain = 'ch' + 'sfw' if destination == 'pics' else 'nsfw' + subdomain = 'ch' + ('sfw' if destination == 'pics' else 'nsfw') r = await client.post(f'https://{subdomain}.bakatrouble.me/{upload_key}/photo', files={'upload': img_bytes}) logging.info(r.text) resp = r.json()