MCPcopy Index your code
hub / github.com/TechifyBots/File-Stream-Bot / sts

Function sts

biisal/bot/plugins/admin.py:21–25  ·  view source on GitHub ↗
(c: Client, m: Message)

Source from the content-addressed store, hash-verified

19
20@StreamBot.on_message(filters.command("users") & filters.private )
21async def sts(c: Client, m: Message):
22 user_id=m.from_user.id
23 if user_id in Var.OWNER_ID:
24 total_users = await db.total_users_count()
25 await m.reply_text(text=f"Total Users in DB: {total_users}", quote=True)
26
27
28@StreamBot.on_message(filters.command("broadcast") & filters.private & filters.user(list(Var.OWNER_ID)))

Callers

nothing calls this directly

Calls 1

total_users_countMethod · 0.80

Tested by

no test coverage detected