From fcd6d3fc23680fed778e40c9b7c7f90b21177762 Mon Sep 17 00:00:00 2001 From: yasir Date: Sat, 10 Dec 2022 12:20:17 +0700 Subject: [PATCH] Tes rewrite ytdl --- misskaty/plugins/ytdl_download_new.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/misskaty/plugins/ytdl_download_new.py b/misskaty/plugins/ytdl_download_new.py index bd453b61..b0164117 100644 --- a/misskaty/plugins/ytdl_download_new.py +++ b/misskaty/plugins/ytdl_download_new.py @@ -5,6 +5,12 @@ from misskaty.vars import COMMAND_HANDLER, LOG_CHANNEL from misskaty.core.decorator.errors import capture_err from misskaty.helper.http import http from pyrogram import filters +from pyrogram.types import ( + InlineKeyboardButton, + InlineKeyboardMarkup, + CallbackQuery, + InputMediaPhoto, +) from iytdl import iYTDL, main from uuid import uuid4 @@ -23,7 +29,7 @@ def rand_key(): @capture_err async def ytsearch(_, message): if len(message.command) == 1: - return await message.reply("Please input a valid YT-DLP Supported URL") + return await message.reply("Please input a query..!") query = message.text.split(" ", maxsplit=1)[1] search_key = rand_key() YT_DB[search_key] = query