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/_broadcast_image_input.js
javascript · 23 lines
1/**#command2name: /broadcast_image_input3answer: 4keyboard: 5parse_mode: html6aliases: broadcast_image_input7allow_only_group: false8need_reply: true9is_web: 010#command**/11 12/* Command: /broadcast_image_input */13if (!(await authUtils.adminOnly())) return;14const d=await db.user.get("broadcast_draft",{});15if(msg?.photo?.length)d.image=msg.photo[msg.photo.length-1].file_id;16else if(msg?.document?.file_id)d.image=msg.document.file_id;17else {18 await Api.sendMessage({chat_id:chat.id,text:"❌ Please send an image, or use <b>Skip Image</b>.",parse_mode:"HTML"});19 await Bot.runCommand("/broadcast_image_prompt");20 return;21}22await db.user.set("broadcast_draft",d);23await Bot.runCommand("/broadcast_text_prompt");