Fix duplicate

This commit is contained in:
yasirarism 2023-09-13 12:30:57 +07:00 committed by GitHub
parent d7f2cc5590
commit 9480e646e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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\n<b>Reason:</b> {e}")