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] @@ -2770,10 +2770,23 @@ { 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: '📢 Broadcast 1 Free Search', callback_data: 'ADMIN_BROADCAST_FREE', style: 'primary' } + ], + [ + { text: '🔙 Back to Main Menu', callback_data: 'ADMIN_BACK_TO_MAIN', style: 'danger' } + ] + ]) + }); +}); + +bot.action('ADMIN_BROADCAST_FREE', async (ctx) => { + const userId = ctx.from.id; + const isOwner = await isUserAdmin(userId); + if (!isOwner) return ctx.answerCbQuery("❌ Only Admin can do this.", { show_alert: true }).catch(() => { }); + ctx.answerCbQuery("Starting broadcast...").catch(() => { }); + + await ctx.reply("🚀 Daily 1 Free Search reset & broadcast started! All users are being notified.", { parse_mode: 'HTML' }); + startDailyResetBroadcast(true); }); bot.action('ADMIN_VIEW_USERS', async (ctx) => { [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.