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/_bd_cancel.js
javascript · 36 lines
1/**#command2name: /bd_cancel3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/* Command: /bd_cancel */13 14if (!(await authUtils.adminOnly())) return;15 16await db.user.set("broadcast_message_id", null);17await db.user.set("broadcast_source_chat_id", null);18 19await authUtils.ack("Broadcast cancelled");20 21await Api.editMessageText({22 chat_id: chat.id,23 message_id: update.callback_query.message.message_id,24 text:25 "❌ <b>Broadcast Cancelled</b>\n\n" +26 "Nothing was sent to users.",27 parse_mode: "HTML",28 reply_markup: {29 inline_keyboard: [30 [31 authUtils.btn("📣 Broadcast Help", "admin_help"),32 authUtils.btn("✕ Close", "close", "danger")33 ]34 ]35 }36});