(bot, query)
| 126 | |
| 127 | @Client.on_callback_query(filters.regex(r'^status')) |
| 128 | async 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 |
nothing calls this directly
no test coverage detected