mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 04:14:51 +00:00
Fix duplicate
This commit is contained in:
parent
d7f2cc5590
commit
9480e646e3
1 changed files with 2 additions and 1 deletions
|
|
@ -207,6 +207,7 @@ async def instadl(_, message):
|
||||||
is_img = (await fetch.head(res)).headers.get("content-type").startswith("image")
|
is_img = (await fetch.head(res)).headers.get("content-type").startswith("image")
|
||||||
if is_img:
|
if is_img:
|
||||||
await message.reply_photo(res, caption=fname)
|
await message.reply_photo(res, caption=fname)
|
||||||
|
else:
|
||||||
await message.reply_video(res, caption=fname)
|
await message.reply_video(res, caption=fname)
|
||||||
await msg.delete()
|
await msg.delete()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue