From e1a5747effd414d0d1537be716fe83dc0a125737 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Tue, 16 Nov 2021 06:36:27 +0700 Subject: [PATCH] some fixes --- program/music.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program/music.py b/program/music.py index aa98e76..9891883 100644 --- a/program/music.py +++ b/program/music.py @@ -141,6 +141,7 @@ async def play(c: Client, m: Message): reply_markup=keyboard, ) else: + try: await call_py.join_group_call( chat_id, AudioPiped( @@ -156,6 +157,9 @@ async def play(c: Client, m: Message): caption=f"💡 **Music streaming started.**\n\n🏷 **Name:** [{songname}]({link})\n💭 **Chat:** `{chat_id}`\n💡 **Status:** `Playing`\n🎧 **Request by:** {requester}", reply_markup=keyboard, ) + except Exception as e: + await suhu.delete() + await m.reply_text(f"🚫 error:\n\n» {e}") else: if len(m.command) < 2: await m.reply(