From 795166c5d2542e6a385d72b4bf3dbe36a45b50f1 Mon Sep 17 00:00:00 2001 From: yasir Date: Sat, 10 Dec 2022 14:00:50 +0700 Subject: [PATCH] Fix --- misskaty/plugins/ytdl_download_new.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misskaty/plugins/ytdl_download_new.py b/misskaty/plugins/ytdl_download_new.py index b2b32849..3b61d6d9 100644 --- a/misskaty/plugins/ytdl_download_new.py +++ b/misskaty/plugins/ytdl_download_new.py @@ -75,7 +75,7 @@ async def ytdownv2(_, message): await message.reply_photo(img, caption=caption, reply_markup=markup, quote=True) -@app.on_callback_query(filters.regex("^yt_(gen|dl)\|(.*)")) +@app.on_callback_query(filters.regex("^yt_(gen|dl)")) async def ytdl_gendl_callback(_, cq: CallbackQuery): if cq.from_user.id != cq.message.reply_to_message.from_user.id: return await cq.answer("Not your task", True) @@ -103,7 +103,7 @@ async def ytdl_gendl_callback(_, cq: CallbackQuery): await ytdl.upload(app, upload_key, format_, cq, True) -@app.on_callback_query(filters.regex("^ytdl_scroll\|(.*)")) +@app.on_callback_query(filters.regex("^ytdl_scroll")) async def ytdl_scroll_callback(_, cq: CallbackQuery): if cq.from_user.id != cq.message.reply_to_message.from_user.id: return await cq.answer("Not your task", True)