The following changes were made by the replace_file_content tool to: /root/aadharbot/index.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -2517,40 +2517,23 @@ triggerFreeModeBroadcast(); } - const freeModeStatus = freeModeState.active - ? '🟢 ACTIVE (Unlimited Searches)' - : '🔴 INACTIVE (Credit System Active)'; - - const adminMsg = `🛠️ ─── ` + toMono("ADMIN CONTROL PANEL") + ` ─── 🛠️\n` + - `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` + - `Welcome Admin! Here is the list of available features and commands to manage the Aadhaar retrieval bot:\n\n` + - `🎁 Free Mode Status: ${freeModeStatus}\n` + - `• Toggle Free Mode instantly using the button below.\n` + - `• Or use commands: /freeon [duration] (e.g., /freeon 30m) or /freeoff\n\n` + - `⚙️ Commands & Text Methods:\n` + - `• /addcredit <telegram_id> <amount>\n` + - ` Adds numeric credits to a user's wallet.\n\n` + - `• /addplan <telegram_id> <daily|weekly|monthly|yearly|{day}day>\n` + - ` Activates an Unlimited Plan for a user (e.g., /addplan 12345678 15day).\n\n` + - `• addcredit <telegram_id> <amount> (Plain Text)\n` + - ` Alternative way to add credits without slash prefix.\n\n` + - `• addplan <telegram_id> <daily|weekly|monthly|yearly|{day}day> (Plain Text)\n` + - ` Alternative way to assign unlimited plan.\n\n` + - `📢 Broadcast System:\n` + - `• Reply to a message with /broadcast [flags]\n` + - ` Flags Explained:\n` + - ` -copy : Send message without "Forwarded from" tag\n` + - ` -pin : Auto-pin the broadcasted message in user chats\n` + - ` -silent : Send without notification sound\n` + - ` (Example: /broadcast -copy -pin)\n` + - `• /broadcast_pause - Pause execution\n` + - `• /broadcast_resume - Resume execution\n` + - `• /broadcast_cancel - Cancel active broadcast\n\n` + - `📊 Control Panel Features:\n` + - `- View Users List: View the list of registered users and their balances.\n` + - `- Add User Credits: Interactive prompt to quickly add credits.\n` + - `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` + - `Select an administrative option below:`; + const freeModeStatus = isFreeModeActive() + ? '🟢 ACTIVE (Unlimited Mode)' + : '🔴 INACTIVE (Credit System Active)'; + + const adminMsg = `╭━━━〔 🛠️ ADMIN CONTROL HUB 🛠️ 〕━━━╮\n` + + `┃ \n` + + `┃ 🎁 Free Mode Status : ${freeModeStatus}\n` + + `┃ \n` + + `┃ ⚡ ADMIN COMMANDS GUIDE:\n` + + `┃ ┣ /addcredit [id] [amount]\n` + + `┃ ┣ /addplan [id] [duration]\n` + + `┃ ┣ /userstatus [id]\n` + + `┃ ┣ /dbexport (Users & Searches CSV)\n` + + `┃ ┣ /dbbackup (Full DB Dump .gz)\n` + + `┃ ┗ /broadcast [flags]\n` + + `╰━━━━━━━━━━━━━━━━━━━━━━━━━━━━╯\n` + + `👇 Select an administrative action below:`; await ctx.editMessageText(adminMsg, { parse_mode: 'HTML', @@ -2557,12 +2557,15 @@ [ - { text: freeModeState.active ? 'Free Mode: ON' : 'Free Mode: OFF', callback_data: 'ADMIN_TOGGLE_FREEMODE', style: freeModeState.active ? 'success' : 'danger' } - ], - [ - { text: 'View Users List', callback_data: 'ADMIN_VIEW_USERS', style: 'primary' }, - { text: 'Add User Credits', callback_data: 'ADMIN_ADD_CREDITS_PROMPT', style: 'success' } - ], - [ - { text: 'Back to Main Menu', callback_data: 'ADMIN_BACK_TO_MAIN', style: 'danger' } + { text: isFreeModeActive() ? '🎁 Free Mode: ON 🟢' : '🎁 Free Mode: OFF 🔴', callback_data: 'ADMIN_TOGGLE_FREEMODE', style: isFreeModeActive() ? 'success' : 'danger' } + ], + [ + { text: '👥 View Users List', callback_data: 'ADMIN_VIEW_USERS', style: 'primary' }, + { text: '➕ Add User Credits', callback_data: 'ADMIN_ADD_CREDITS_PROMPT', style: 'success' } + ], + [ + { text: '📢 Broadcast 1 Free Search', callback_data: 'ADMIN_BROADCAST_FREE', style: 'primary' } + ], + [ + { text: '🔙 Back to Main Menu', callback_data: 'ADMIN_BACK_TO_MAIN', style: 'danger' } ] ]) }).catch(() => {}); [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.