remotes/1693045480750635534/spooky-22
parent
8abd5c804e
commit
c7ea305ae1
|
@ -34,8 +34,6 @@ def upload_ibb(file=None, resize=False):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
return
|
return
|
||||||
i.save("image.webp")
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open("image.webp", 'rb') as f:
|
with open("image.webp", 'rb') as f:
|
||||||
data={'image': base64.b64encode(f.read())}
|
data={'image': base64.b64encode(f.read())}
|
||||||
|
|
Loading…
Reference in New Issue