This commit is contained in:
yasir 2022-12-10 14:20:52 +07:00
parent 3f98d31cc5
commit b106bb79df

View file

@ -82,7 +82,7 @@ async def ytdl_gendl_callback(_, cq: CallbackQuery):
callback = cq.data.split("|")
key = callback[1]
if callback[0] == "yt_gen":
if match := regex.match(query):
if match := regex.match(cq.message.reply_to_message.command[1]):
x = await main.Extractor().get_download_button(key)
await cq.edit_message_caption(caption=x.caption, reply_markup=x.buttons)
else: