xseaqbka/Nawaab_RoBotPublic · Bot Template
AIThis Telegram bot acts as a TOTP authenticator: users can add accounts via Base32 secret, QR code, or otpauth:// URI, list saved keys, and generate current OTP codes on demand with refresh and delete options. It includes an admin panel with user ban/unban, paginated user management, required-channel management, and a broadcast system that sends text, image, or copied replied messages to all private chats. A web dashboard endpoint provides OTP generation and account management over HTTP. The bot also supports an on/off maintenance switch and per-user access gating.
Utilitytotpauthenticatorotp2fabroadcastadmin
59 commands1 envUpdated 10d agoCreated Aug 28, 2026
commands/_admin_stats.js
javascript · 30 lines
1/**#command2name: /admin_stats3answer: 4keyboard: 5parse_mode: html6aliases: admin_stats7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/* Command: /admin_stats */13if (!(await authUtils.adminOnly())) return;14 15const totalUsers = await authUtils.userCount();16const requiredChannels = await db.bot.get("channels", []);17const serviceEnabled = await authUtils.isEnabled();18const configVersion = await db.bot.get("version", "1.0.0");19 20await authUtils.render(21 "📊 <b>System Overview</b>\n\n" +22 `👥 Users: <b>${totalUsers}</b>\n` +23 `📢 Required Channels: <b>${requiredChannels.length}</b>\n` +24 `⚙️ Service: <b>${serviceEnabled ? "🟢 Online" : "🔴 Maintenance"}</b>\n` +25 `📦 Version: <b>${configVersion}</b>`,26 [27 [authUtils.btn("🔄 Refresh", "admin_stats", "primary")],28 [authUtils.btn("⬅️ Admin Panel", "admin_menu"), authUtils.btn("✕ Close", "close", "danger")]29 ]30);