Skip to content

Commit

Permalink
Update actives.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Aug 5, 2023
1 parent ddc960a commit 8e6bec4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tlg_bot/kreacher/plugins/actives.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

@kreacher.on(events.NewMessage(pattern="[!?/]actives"))
async def actives(event):
msg = await event.reply("Getting active voice chats.. Please hold")
msg = await event.reply("<i>Getting active Voice Chats... \n\nPlease hold, master</i>", parse_mode="HTML")
await sleep(3)
served_chats = len(VOICE_CHATS)
if served_chats > 0:
return await msg.edit(f"**Active Voice Chats:-**\n\n{served_chats}")
return await msg.edit(f"<i>Active Voice Chats: </i><b>{served_chats}</b>", parse_mode="HTML")

return await msg.edit("No Active Voice Chats")
return await msg.edit("<i>No active Voice Chats</i>", parse_mode="HTML")

0 comments on commit 8e6bec4

Please sign in to comment.