MCPcopy Index your code
hub / github.com/CodeXBotz/File-Sharing-Bot / get_users

Function get_users

plugins/start.py:156–159  ·  view source on GitHub ↗
(client: Bot, message: Message)

Source from the content-addressed store, hash-verified

154
155@Bot.on_message(filters.command('users') & filters.private & filters.user(ADMINS))
156async def get_users(client: Bot, message: Message):
157 msg = await client.send_message(chat_id=message.chat.id, text=WAIT_MSG)
158 users = await full_userbase()
159 await msg.edit(f"{len(users)} users are using this bot")
160
161@Bot.on_message(filters.private & filters.command('broadcast') & filters.user(ADMINS))
162async def send_text(client: Bot, message: Message):

Callers

nothing calls this directly

Calls 1

full_userbaseFunction · 0.90

Tested by

no test coverage detected