update for new channel-helper
This commit is contained in:
		
							
								
								
									
										2
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.py
									
									
									
									
									
								
							@@ -367,7 +367,7 @@ async def send_callback(cq: CallbackQuery):
 | 
				
			|||||||
    async with httpx.AsyncClient() as client:
 | 
					    async with httpx.AsyncClient() as client:
 | 
				
			||||||
        try:
 | 
					        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}/', files={'upload': img_bytes})
 | 
					            r = await client.post(f'https://{subdomain}.bakatrouble.me/{upload_key}/photo', files={'upload': img_bytes})
 | 
				
			||||||
            logging.info(r.text)
 | 
					            logging.info(r.text)
 | 
				
			||||||
            resp = r.json()
 | 
					            resp = r.json()
 | 
				
			||||||
            result = resp.get('result')
 | 
					            result = resp.get('result')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user