diff --git a/files/helpers/images.py b/files/helpers/images.py index 4927246090..027660cd2c 100644 --- a/files/helpers/images.py +++ b/files/helpers/images.py @@ -33,6 +33,6 @@ def upload_ibb(file=None, resize=False): with open("image.webp", 'rb') as f: - req = requests.post('https://catbox.moe/user/api.php', data={'userhash':CATBOX_KEY, 'reqtype':'fileupload'}, files={'fileToUpload':f}) + req = requests.post('https://catbox.moe/user/api.php', data={'userhash':CATBOX_KEY, 'reqtype':'fileupload'}, files={'fileToUpload':f}).text - return req.text \ No newline at end of file + if req.startswith('https://'): return req \ No newline at end of file