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/channel_edit_0.js
javascript · 34 lines
1/**#command2name: channel_edit_03answer: 4keyboard: 5parse_mode: html6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/*Command: channel_edit_0*/13if (!(await authUtils.adminOnly())) return;14 15const m = (update.callback_query?.data || "").match(/^channel_edit_(\d+)$/);16const index = m ? Number(m[1]) : Number(options?.index ?? params);17const channels = await db.bot.get("channels", []);18if (!Number.isInteger(index) || !channels[index]) {19 await authUtils.render("❌ Channel not found.", [[authUtils.btn("⬅️ Channels", "channels"), authUtils.btn("✕ Close", "close", "danger")]]);20 return;21}22const c = channels[index];23 24await authUtils.render(25 "✏️ <b>Edit channel</b>\n\n" +26 "<b>Name:</b> " + c.name + "\n" +27 "<b>ID:</b> <code>" + c.id + "</code>\n" +28 "<b>Join URL:</b> " + c.url + "\n\n" +29 "Use <code>/channel_set " + index + " | New Name | New ID | New URL</code>",30 [31 [authUtils.btn("🗑️ Delete", "channel_del_" + index, "danger")],32 [authUtils.btn("⬅️ Channels", "channels"), authUtils.btn("✕ Close", "close", "danger")]33 ]34);