update for new channel-helper

This commit is contained in:
2025-08-09 23:06:18 +03:00
parent 1b88ad2ac8
commit abb4570958

View File

@@ -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()