From e8653e5035e655abb958612794aa6843487a710e Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Sun, 21 Nov 2021 13:18:39 +0700 Subject: [PATCH] fixes --- program/music.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/program/music.py b/program/music.py index 534aa22..530802a 100644 --- a/program/music.py +++ b/program/music.py @@ -2,8 +2,8 @@ # Commit Start Date 20/10/2021 # Finished On 28/10/2021 -import asyncio import re +import asyncio from config import ASSISTANT_NAME, BOT_USERNAME, IMG_1, IMG_2 from driver.filters import command, other_filters @@ -167,7 +167,7 @@ async def play(c: Client, m: Message): "ยป reply to an **audio file** or **give something to search.**" ) else: - suhu = await m.send_message(chat_id, "๐Ÿ”Ž **Searching...**") + suhu = await c.send_message(chat_id, "๐Ÿ”Ž **Searching...**") query = m.text.split(None, 1)[1] search = ytsearch(query) if search == 0: @@ -218,7 +218,7 @@ async def play(c: Client, m: Message): "ยป reply to an **audio file** or **give something to search.**" ) else: - suhu = await m.send_message(chat_id, "๐Ÿ”Ž **Searching...**") + suhu = await c.send_message(chat_id, "๐Ÿ”Ž **Searching...**") query = m.text.split(None, 1)[1] search = ytsearch(query) if search == 0: @@ -337,7 +337,7 @@ async def stream(c: Client, m: Message): await m.reply("ยป give me a live-link/m3u8 url/youtube link to stream.") else: link = m.text.split(None, 1)[1] - suhu = await m.send_message(chat_id, "๐Ÿ”„ **processing stream...**") + suhu = await c.send_message(chat_id, "๐Ÿ”„ **processing stream...**") regex = r"^(https?\:\/\/)?(www\.youtube\.com|youtu\.?be)\/.+" match = re.match(regex, link)