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]
@@ -1638,8 +1638,8 @@
// 1 Search = 1 Credit for all services
const required = 1;
- const hasSuffCredits = access.isUnlimited || access.credits >= required;
- console.log(`[DEBUG] startService userId=${userId}, isUnlimited=${access.isUnlimited}, credits=${access.credits}, hasSuffCredits=${hasSuffCredits}, hasAccess=${access.hasAccess}`);
+ const hasSuffCredits = access.isUnlimited || access.hasFreeSearch || access.credits >= required;
+ console.log(`[DEBUG] startService userId=${userId}, isUnlimited=${access.isUnlimited}, hasFreeSearch=${access.hasFreeSearch}, credits=${access.credits}, hasSuffCredits=${hasSuffCredits}, hasAccess=${access.hasAccess}`);
if (!access.hasAccess || !hasSuffCredits) {
if (ctx.callbackQuery) {
@@ -1651,13 +1651,13 @@
`đ¤ Session Info:\n` +
`âĸ User: ${firstName}\n` +
`âĸ ID: ${userId}\n` +
- `âĸ Balance: ${access.credits || 0} Credits ${CREDIT_EMOJI}\n\n` +
- `
â ī¸ Access Limit / Limit Restricted:\n` + - `Aapke paas active credits nahi hain. Aage search karne ke liye credits khareedein (Cost: 1 Credit ${CREDIT_EMOJI} per search).\n\n` + - `(You do not have enough credits. Please add funds or a subscription plan to proceed.)\n\n` + - `đ Daily Free Limit / ā¤ĄāĨ⤞āĨ ā¤ĢāĨ⤰āĨ ⤞ā¤ŋā¤Žā¤ŋā¤:\n` + - `
Har user ko daily 1 Aadhaar search (1 Credit ${CREDIT_EMOJI}) bilkul free di jati hai, jo har raat 12:00 AM IST ko reset ho jati hai!\n\n` + - `Aapka balance har midnight reset hokar exact 1 Credit ${CREDIT_EMOJI} ho jata hai (non-accumulative).\n` + + `âĸ Balance:
${access.credits || 0} Credits ${CREDIT_EMOJI}\n` +
+ `âĸ Daily Free Search: Used Today (Resets 12:00 AM IST) âŗ\n\n` +
+ `â ī¸ Access Limit / Limit Restricted:\n` + + `Aapka aaj ka 1 Daily Free Search use ho chuka hai aur aapke paas credits nahi hain. Aage search karne ke liye credits khareedein (Cost: 1 Credit ${CREDIT_EMOJI} per search = âš60).\n\n` + + `(Daily free search exhausted. Please add funds or a subscription plan to proceed.)\n\n` + + `đ Daily Free Search:\n` + + `
Har user ko daily 1 search bilkul free di jaati hai, jo har raat 12:00 AM IST ko reset ho jaati hai!\n` + `ââââââââââââââââââââââââââ\n` + `đ Dev: @EverythingBypass`; [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.