some fixes

This commit is contained in:
levina 2021-11-16 06:36:27 +07:00 committed by GitHub
parent e282e50863
commit e1a5747eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,6 +141,7 @@ async def play(c: Client, m: Message):
reply_markup=keyboard, reply_markup=keyboard,
) )
else: else:
try:
await call_py.join_group_call( await call_py.join_group_call(
chat_id, chat_id,
AudioPiped( 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}", caption=f"💡 **Music streaming started.**\n\n🏷 **Name:** [{songname}]({link})\n💭 **Chat:** `{chat_id}`\n💡 **Status:** `Playing`\n🎧 **Request by:** {requester}",
reply_markup=keyboard, reply_markup=keyboard,
) )
except Exception as e:
await suhu.delete()
await m.reply_text(f"🚫 error:\n\n» {e}")
else: else:
if len(m.command) < 2: if len(m.command) < 2:
await m.reply( await m.reply(