Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* https://t.me/UserGeSpam/279353

* Update voice_call.py
  • Loading branch information
Krishna-Singhal authored May 9, 2021
1 parent 689bd5e commit 5ea21f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions userge/plugins/utils/voice_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def checker(msg: Message):
else:
try:
await msg.edit(
"`Doesn't join any Voice-Call...`"
"`Haven't join any Voice-Call...`"
) if msg.from_user.is_self else await msg.delete()
except MessageDeleteForbidden:
pass
Expand Down Expand Up @@ -380,7 +380,7 @@ async def stop_music(msg: Message):
await msg.delete()
await _skip(True)

await reply_text(msg, "`Stopped Userge-Music.`")
await reply_text(msg, "`Stopped Userge-Music.`", del_in=5)


@call.on_network_status_changed
Expand All @@ -394,7 +394,8 @@ async def nsc_handler(c: GroupCall, connected: bool):

await userge.send_message(
int("-100" + str(c.full_chat.id)) if connected else CHAT_ID,
f"`{'Joined' if connected else 'Left'} Voice-Chat Successfully`"
f"`{'Joined' if connected else 'Left'} Voice-Chat Successfully`",
del_in=5 if not connected else -1
)


Expand Down

0 comments on commit 5ea21f7

Please sign in to comment.