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/_confirm_delete.js
javascript · 26 lines
1/**#command2name: /confirm_delete3answer: 4keyboard: 5parse_mode: html6aliases: confirm_delete7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/* Command: /confirm_delete */13if (!(await authUtils.userGate())) return;14const index = parseInt(String(options?.index || params || "").trim(),10);15const keys = await authUtils.getKeys();16if (!Number.isInteger(index) || index<1 || index>keys.length) {17 await authUtils.render("❌ Account no longer exists.",[[authUtils.btn("🔐 My Keys","my_keys")]]);18 return;19}20const removed=keys.splice(index-1,1)[0];21await authUtils.saveKeys(keys);22await authUtils.render(23 "✅ <b>Account Deleted</b>\n\n" +24 `<b>${authUtils.escapeHtml(removed.name||"Authenticator Account")}</b> has been removed.`,25 [[authUtils.btn("🔐 My Keys","my_keys","primary"),authUtils.btn("✕ Close","close","danger")]]26);