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]
@@ -3014,63 +3014,11 @@
});
bot.action('ADMIN_BACK_TO_MAIN', async (ctx) => {
+ ctx.answerCbQuery().catch(() => { });
const userId = ctx.from.id;
const firstName = ctx.from.first_name || 'User';
const access = await checkUserAccess(userId);
-
- const planBadge = access.isUnlimited
- ? `👑 UNLIMITED VIP 💎`
- : `₹${access.credits} (Credits) 🪙`;
- const expiryLine = access.isUnlimited && access.planExpiresAt
- ? `⏳ Expires: ${access.planExpiresAt.toLocaleString('en-IN', { timeZone: 'Asia/Kolkata' })}\n`
- : '';
-
- const welcomeMsg = `⚡ AADHAAR VIP HUB ⚡\n` +
- `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
- `Welcome to the most advanced and ultra-fast Aadhaar Premium Bot. Instantly retrieve UID and download PDF via OTP.\n\n` +
- `👤 USER PROFILE\n` +
- `🏷️ Name: ${firstName}\n` +
- `🆔 User ID: ${userId}\n` +
- `💎 Tier: ${planBadge}\n` +
- `${expiryLine}` +
- `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
- `🛡️ Engine: Ultra-Fast v3.0 | Ping: 12ms 🟢\n` +
- `💬 Support: @EverythingBypass\n` +
- `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
- `👇 Select a module below to launch:`;
-
- const keyboard = [
- [
- { text: '💳 Retrieve (SMS)', callback_data: 'START_RETRIEVE_AADHAAR', style: 'primary' },
- { text: '📥 Download PDF', callback_data: 'START_DOWNLOAD_AADHAAR', style: 'success' }
- ],
- [
- { text: '📑 EID to PDF (Direct)', callback_data: 'START_EID_TO_PDF', style: 'primary' }
- ],
- [
- { text: '🛒 Add Funds', callback_data: 'BUY_CREDITS_MENU', style: 'primary' },
- { text: '🎁 Free Credits', callback_data: 'EARN_FREE_CREDIT', style: 'success' }
- ],
- [
- { text: '💎 Unlimited Plans', callback_data: 'BUY_UNLIMITED_PLANS', style: 'primary' }
- ],
- [
- { text: '💬 Support', url: 'https://t.me/EverythingBypass', style: 'primary' }
- ]
- ];
-
- const isOwner = await isUserAdmin(userId);
- if (isOwner) {
- keyboard.push([
- { text: '👑 Admin Control Panel', callback_data: 'ADMIN_PANEL', style: 'danger' }
- ]);
- }
-
- ctx.answerCbQuery().catch(() => { });
- ctx.editMessageText(welcomeMsg, {
- parse_mode: 'HTML',
- ...Markup.inlineKeyboard(keyboard)
- });
+ await showAuthorizedWelcomeMenu(ctx, userId, firstName, false, access);
});
bot.action('BUY_CREDITS_MENU', 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.