From 9480e646e3dfcb18f58f4942d1b3f4a26e3208a6 Mon Sep 17 00:00:00 2001 From: yasirarism Date: Wed, 13 Sep 2023 12:30:57 +0700 Subject: [PATCH] Fix duplicate --- misskaty/plugins/download_upload.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misskaty/plugins/download_upload.py b/misskaty/plugins/download_upload.py index 0536cf0e..19c7e0ac 100644 --- a/misskaty/plugins/download_upload.py +++ b/misskaty/plugins/download_upload.py @@ -207,7 +207,8 @@ async def instadl(_, message): is_img = (await fetch.head(res)).headers.get("content-type").startswith("image") if is_img: await message.reply_photo(res, caption=fname) - await message.reply_video(res, caption=fname) + else: + await message.reply_video(res, caption=fname) await msg.delete() except Exception as e: await message.reply(f"Failed to download instagram video..\n\nReason: {e}")