sdfsfd
This commit is contained in:
parent
af9b584250
commit
8cc46d10c2
1 changed files with 2 additions and 2 deletions
|
@ -33,6 +33,6 @@ def upload_ibb(file=None, resize=False):
|
||||||
|
|
||||||
|
|
||||||
with open("image.webp", 'rb') as f:
|
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
|
if req.startswith('https://'): return req
|
Loading…
Add table
Add a link
Reference in a new issue