mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +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("|")
|
||||
key = callback[1]
|
||||
if callback[0] == "yt_gen":
|
||||
if match := regex.match(cq.message.reply_to_message.command[1]) or regex.match(
|
||||
key
|
||||
if (
|
||||
match := regex.match(cq.message.reply_to_message.command[1])
|
||||
or len(callback) == 2
|
||||
):
|
||||
x = await main.Extractor().get_download_button(key)
|
||||
await cq.edit_message_caption(caption=x.caption, reply_markup=x.buttons)
|
||||
|
|
|
|||
Loading…
Reference in a new issue