Spaces:
Running
Running
| from config import * | |
| from pyrogram import Client, filters | |
| from pyrogram.types import ( InlineKeyboardButton, InlineKeyboardMarkup) | |
| from helper.database import botdata, find_one, total_user,getid | |
| from helper.progress import humanbytes | |
| token = BOT_TOKEN | |
| botid = token.split(':')[0] | |
| async def users(client,message): | |
| botdata(int(botid)) | |
| data = find_one(int(botid)) | |
| total_rename = data["total_rename"] | |
| total_size = data["total_size"] | |
| id = str(getid()) | |
| ids = id.split(',') | |
| await message.reply_text(f"<b>⚡️ Total User :</b> {total_user()}\n\n<b>⚡️ Total Renamed File :</b> {total_rename}\n<b>⚡ Total Size Renamed :</b> {humanbytes(int(total_size))}", quote=True, reply_markup= InlineKeyboardMarkup([ | |
| [InlineKeyboardButton("🦋 Close 🦋", callback_data="cancel")]]) | |
| ) | |
| async def allids(client,message): | |
| botdata(int(botid)) | |
| data = find_one(int(botid)) | |
| total_rename = data["total_rename"] | |
| total_size = data["total_size"] | |
| id = str(getid()) | |
| ids = id.split(',') | |
| await message.reply_text(f"<b>⚡️ All IDs :</b> {ids}\n\n<b>⚡️ Total User :</b> {total_user()}\n\n<b>⚡️ Total Renamed File :</b> {total_rename}\n<b>⚡ Total Size Renamed :</b> {humanbytes(int(total_size))}", quote=True, reply_markup= InlineKeyboardMarkup([ | |
| [InlineKeyboardButton("🦋 Close 🦋", callback_data="cancel")]]) | |
| ) | |