mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-06 03:54:50 +00:00
ok
This commit is contained in:
parent
998215454f
commit
7af42ce6d5
1 changed files with 1 additions and 7 deletions
|
|
@ -103,15 +103,9 @@ async def ytdownv2(self: Client, ctx: Message, strings):
|
||||||
caption = x.caption
|
caption = x.caption
|
||||||
markup = x.buttons
|
markup = x.buttons
|
||||||
photo = x.image_url
|
photo = x.image_url
|
||||||
msg = await ctx.reply_photo(
|
await ctx.reply_photo(
|
||||||
photo, caption=caption, reply_markup=markup, quote=True
|
photo, caption=caption, reply_markup=markup, quote=True
|
||||||
)
|
)
|
||||||
await msg.wait_for_click(from_user_id=ctx.from_user.id, timeout=30)
|
|
||||||
except ListenerTimeout:
|
|
||||||
try:
|
|
||||||
await msg.edit_caption(strings("exp_task", context="general"))
|
|
||||||
except MessageIdInvalid:
|
|
||||||
pass
|
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
await ctx.reply_msg(f"Opps, ERROR: {str(err)}")
|
await ctx.reply_msg(f"Opps, ERROR: {str(err)}")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue