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 \ 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}`") 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}`") 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