update ytsearch.py
This commit is contained in:
parent
3b899f186f
commit
cf2ab95d14
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user