|
|
@@ -5,7 +5,7 @@ import youtube_dl
|
|
|
from pyrogram import filters
|
|
|
from pyrogram.types import Message
|
|
|
from wbb.utils import cust_filter
|
|
|
-from wbb import app
|
|
|
+from wbb import app, OWNER_ID
|
|
|
|
|
|
__MODULE__ = "Music"
|
|
|
__HELP__ = "/music [link] To Download Music From Various Websites"
|
|
|
@@ -16,7 +16,7 @@ ydl_opts = {
|
|
|
}
|
|
|
|
|
|
|
|
|
-@app.on_message(cust_filter.command(commands=("music")) & ~filters.edited)
|
|
|
+@app.on_message(cust_filter.command(commands=("music")) & ~filters.edited & filters.user(OWNER_ID))
|
|
|
async def music(_, message: Message):
|
|
|
if len(message.command) != 2:
|
|
|
await message.reply_text("`/music` needs a link as argument")
|