mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 19:14:51 +00:00
FIx
This commit is contained in:
parent
f80935b8c3
commit
a60011b1de
1 changed files with 3 additions and 2 deletions
|
|
@ -123,8 +123,9 @@ async def ytdl_gendl_callback(_, cq: CallbackQuery):
|
||||||
callback = cq.data.split("|")
|
callback = cq.data.split("|")
|
||||||
key = callback[1]
|
key = callback[1]
|
||||||
if callback[0] == "yt_gen":
|
if callback[0] == "yt_gen":
|
||||||
if match := regex.match(cq.message.reply_to_message.command[1]) or regex.match(
|
if (
|
||||||
key
|
match := regex.match(cq.message.reply_to_message.command[1])
|
||||||
|
or len(callback) == 2
|
||||||
):
|
):
|
||||||
x = await main.Extractor().get_download_button(key)
|
x = await main.Extractor().get_download_button(key)
|
||||||
await cq.edit_message_caption(caption=x.caption, reply_markup=x.buttons)
|
await cq.edit_message_caption(caption=x.caption, reply_markup=x.buttons)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue