From ebf666f8174e84ca4edbfde85c2e1e18bf4a0078 Mon Sep 17 00:00:00 2001 From: Hunter XDD <85411336+Hunter-XDD@users.noreply.github.com> Date: Fri, 5 Nov 2021 16:31:47 +0530 Subject: [PATCH 1/4] umm --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index de73bf3..c4d1d51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM nikolaik/python-nodejs:python3.9-nodejs16 +FROM nikolaik/python-nodejs:python3.10-nodejs17 RUN apt-get update \ && apt-get install -y --no-install-recommends ffmpeg \ && apt-get clean \ From 86dbc4d17ca1e59ef2d9928ed5a04314590fb890 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Sun, 7 Nov 2021 13:01:36 +0700 Subject: [PATCH 2/4] yt-dl issues --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ce7c9e3..1070572 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ ffmpeg-python py-tgcalls==0.8.1rc1 git+https://github.com/pyrogram/pyrogram@master git+https://github.com/yt-dlp/yt-dlp@master -youtube-search-python +youtube-search-python==1.4.9 youtube-search httpx==0.13.3 python-dotenv From 6ed984c7d3b7b0125507b5988634d135d0131f65 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Sun, 7 Nov 2021 13:03:43 +0700 Subject: [PATCH 3/4] some fixes --- program/music.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/program/music.py b/program/music.py index 2ab9aeb..ab95515 100644 --- a/program/music.py +++ b/program/music.py @@ -203,6 +203,7 @@ async def play(c: Client, m: Message): reply_markup=keyboard, ) except Exception as ep: + await suhu.delete() await m.reply_text(f"🚫 error: `{ep}`") else: @@ -252,6 +253,7 @@ async def play(c: Client, m: Message): reply_markup=keyboard, ) except Exception as ep: + await suhu.delete() await m.reply_text(f"🚫 error: `{ep}`") @@ -370,4 +372,5 @@ async def stream(c: Client, m: Message): reply_markup=keyboard, ) except Exception as ep: + await suhu.delete() await m.reply_text(f"🚫 error: `{ep}`") From 6c36747da3a998acf1768a0bb2be16ae84a1d38c Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Sun, 7 Nov 2021 13:05:34 +0700 Subject: [PATCH 4/4] some fixes --- program/video.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/program/video.py b/program/video.py index 9476fd9..31984fd 100644 --- a/program/video.py +++ b/program/video.py @@ -120,7 +120,7 @@ async def vplay(c: Client, m: Message): pass except Exception as e: return await m.reply_text( - f"❌ **userbot failed to join**\n\n**reason**:{e}" + f"❌ **userbot failed to join**\n\n**reason**: {e}" ) if replied: @@ -231,6 +231,7 @@ async def vplay(c: Client, m: Message): reply_markup=keyboard, ) except Exception as ep: + await loser.delete() await m.reply_text(f"🚫 error: `{ep}`") else: @@ -284,6 +285,7 @@ async def vplay(c: Client, m: Message): reply_markup=keyboard, ) except Exception as ep: + await loser.delete() await m.reply_text(f"🚫 error: `{ep}`") @@ -424,4 +426,5 @@ async def vstream(c: Client, m: Message): reply_markup=keyboard, ) except Exception as ep: + await loser.delete() await m.reply_text(f"🚫 error: `{ep}`")