MCPcopy Create free account
hub / github.com/VJBots/VJ-Forward-Bot / status

Function status

plugins/commands.py:128–141  ·  view source on GitHub ↗
(bot, query)

Source from the content-addressed store, hash-verified

126
127@Client.on_callback_query(filters.regex(r'^status'))
128async def status(bot, query):
129 users_count, bots_count = await db.total_users_bots_count()
130 forwardings = await db.forwad_count()
131 upt = await get_bot_uptime(START_TIME)
132 buttons = [[
133 InlineKeyboardButton('• back', callback_data='help'),
134 InlineKeyboardButton('System Stats ✨️', callback_data='systm_sts'),
135 ]]
136 reply_markup = InlineKeyboardMarkup(buttons)
137 await query.message.edit_text(
138 text=Script.STATUS_TXT.format(upt, users_count, bots_count, forwardings),
139 reply_markup=reply_markup,
140 disable_web_page_preview=True,
141 )
142
143# Don't Remove Credit Tg - @VJ_Botz
144# Subscribe YouTube Channel For Amazing Bot https://youtube.com/@Tech_VJ

Callers

nothing calls this directly

Calls 3

forwad_countMethod · 0.80
get_bot_uptimeFunction · 0.70

Tested by

no test coverage detected