update ytsearch.py

This commit is contained in:
zxce3 2021-09-12 11:36:10 +07:00
parent 3b899f186f
commit cf2ab95d14

View File

@ -4,7 +4,8 @@ from pyrogram import Client as app
from pyrogram.types import Message
from youtube_search import YoutubeSearch
from config import BOT_USERNAME
# from config import Veez.BOT_USERNAME
from config import Veez
from helpers.filters import command
# logging
@ -13,7 +14,7 @@ logger = logging.getLogger(__name__)
logging.getLogger("pyrogram").setLevel(logging.WARNING)
@app.on_message(command(["search", f"search@{BOT_USERNAME}"]))
@app.on_message(command(["search", f"search@{Veez.BOT_USERNAME}"]))
async def ytsearch(_, message: Message):
m = await message.reply_text("🔎 **searching url...**")
try: