Update Akeno/plugins/imageai.py
Browse files- Akeno/plugins/imageai.py +1 -0
Akeno/plugins/imageai.py
CHANGED
@@ -62,6 +62,7 @@ async def imgfluxai_(client: Client, message: Message):
|
|
62 |
with Image.open(io.BytesIO(image_bytes)) as img:
|
63 |
img.save("testing.jpg", format="JPEG")
|
64 |
await message.reply_photo("testing.jpg", progress=progress, progress_args=(seconds_uploading, seconds_time, "Uploading image..."))
|
|
|
65 |
except Exception as e:
|
66 |
LOGS.error(str(e))
|
67 |
await message.edit_text(f"An error occurred: {str(e)}")
|
|
|
62 |
with Image.open(io.BytesIO(image_bytes)) as img:
|
63 |
img.save("testing.jpg", format="JPEG")
|
64 |
await message.reply_photo("testing.jpg", progress=progress, progress_args=(seconds_uploading, seconds_time, "Uploading image..."))
|
65 |
+
await seconds_uploading.delete()
|
66 |
except Exception as e:
|
67 |
LOGS.error(str(e))
|
68 |
await message.edit_text(f"An error occurred: {str(e)}")
|