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] @@ -3268,7 +3268,7 @@ const access = await checkUserAccess(userId); const cost = 1; - if (!access.hasAccess || (!access.isUnlimited && access.credits < cost)) { + if (!access.hasAccess) { return ctx.reply("❌ Insufficient Credits: Aapke paas is record ko download karne ke liye paryapt balance nahi hai. Please add funds.", { parse_mode: 'HTML' }); } @@ -3275,7 +3275,13 @@ - if (!access.isUnlimited) { - leftCredits = await deductUserCredit(userId, cost); - } else { + let chargedDesc = ''; + if (access.isUnlimited) { setCooldown(userId, session.serviceType || 'DOWNLOAD_PDF'); + chargedDesc = '0 (VIP Pass)'; + } else if (access.hasFreeSearch) { + await markDailyFreeSearchUsed(userId); + chargedDesc = '0 (Daily Free Search)'; + } else { + leftCredits = await deductUserCredit(userId, cost); + chargedDesc = `1 Credit ${CREDIT_EMOJI}`; } const pdfBuffer = Buffer.from(cached.pdf_base64, 'base64'); @@ -3288,7 +3288,7 @@ `🆔 UID / No: ${finalAadhaar}\n` + `🔑 Password: ${passVal}\n` + `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` + - `💰 Charged: ${access.isUnlimited ? '0 (VIP Pass)' : cost + ' Credits'} ${access.isUnlimited ? '' : CREDIT_EMOJI}\n` + + `💰 Charged: ${chargedDesc}\n` + `🪙 Balance: ${access.isUnlimited ? 'Unlimited' : leftCredits + ' Credits'} ${access.isUnlimited ? '' : CREDIT_EMOJI}\n` + `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` + `⚡ AADHAAR VIP ENGINE ⚡`; [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.