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
ProfileTelegram
59 commands1 envUpdated 10d agoCreated Aug 28, 2026
Back to folder

commands/@.js

javascript · 16 lines

Raw
1/**#command2name: @3answer: 4keyboard: 5parse_mode: html6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12const authUtils = require("/utils");13if (!(await db.bot.has("enabled"))) await db.bot.set("enabled", true);14if (!(await db.bot.has("channels"))) await db.bot.set("channels", []);15if (!(await db.bot.has("otp_period"))) await db.bot.set("otp_period", 30);16if (!(await db.bot.has("max_keys_per_user"))) await db.bot.set("max_keys_per_user", 0);