This commit is contained in:
levina 2021-11-07 18:08:03 +07:00 committed by GitHub
parent 371d1848d1
commit df1d5821c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ async def play(c: Client, m: Message):
try: try:
await user.join_chat(m.chat.username) await user.join_chat(m.chat.username)
except Exception as e: except Exception as e:
await m.reply_text(f"❌ **userbot failed to join**\n\n**reason**:{e}") await m.reply_text(f"❌ **userbot failed to join**\n\n**reason**: `{e}`")
return return
else: else:
try: try:
@ -114,7 +114,7 @@ async def play(c: Client, m: Message):
pass pass
except Exception as e: except Exception as e:
return await m.reply_text( 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: if replied:
@ -312,7 +312,7 @@ async def stream(c: Client, m: Message):
try: try:
await user.join_chat(m.chat.username) await user.join_chat(m.chat.username)
except Exception as e: except Exception as e:
await m.reply_text(f"❌ **userbot failed to join**\n\n**reason**:{e}") await m.reply_text(f"❌ **userbot failed to join**\n\n**reason**: `{e}`")
return return
else: else:
try: try:
@ -323,7 +323,7 @@ async def stream(c: Client, m: Message):
pass pass
except Exception as e: except Exception as e:
return await m.reply_text( return await m.reply_text(
f"❌ **userbot failed to join**\n\n**reason**:{e}" f"❌ **userbot failed to join**\n\n**reason**: `{e}`"
) )
if len(m.command) < 2: if len(m.command) < 2: