mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 04:14:51 +00:00
Forget
This commit is contained in:
parent
e4dd79cda5
commit
39cd72b417
1 changed files with 3 additions and 3 deletions
|
|
@ -84,7 +84,7 @@ async def genss(self: Client, ctx: Message, strings):
|
||||||
ms = (end_t - start_t).seconds
|
ms = (end_t - start_t).seconds
|
||||||
await pesan.edit(f"Downloaded to <code>{download_file_path}</code> in {ms} seconds")
|
await pesan.edit(f"Downloaded to <code>{download_file_path}</code> in {ms} seconds")
|
||||||
try:
|
try:
|
||||||
images = await take_ss(the_real_download_location)
|
images = await take_ss(download_file_path)
|
||||||
await process.edit_msg(strings("up_progress"))
|
await process.edit_msg(strings("up_progress"))
|
||||||
await self.send_chat_action(chat_id=ctx.chat.id, action=enums.ChatAction.UPLOAD_PHOTO)
|
await self.send_chat_action(chat_id=ctx.chat.id, action=enums.ChatAction.UPLOAD_PHOTO)
|
||||||
try:
|
try:
|
||||||
|
|
@ -109,14 +109,14 @@ async def genss(self: Client, ctx: Message, strings):
|
||||||
await pesan.delete()
|
await pesan.delete()
|
||||||
try:
|
try:
|
||||||
os.remove(images)
|
os.remove(images)
|
||||||
os.remove(the_real_download_location)
|
os.remove(download_file_path)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
await ctx.reply_msg(strings("err_ssgen").format(exc=exc))
|
await ctx.reply_msg(strings("err_ssgen").format(exc=exc))
|
||||||
try:
|
try:
|
||||||
os.remove(images)
|
os.remove(images)
|
||||||
os.remove(the_real_download_location)
|
os.remove(download_file_path)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
elif replied and replied.media:
|
elif replied and replied.media:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue