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]
@@ -3407,24 +3407,17 @@
setCooldown(userId, session.serviceType);
}
- let msg = `š³ āāā ${toMono("AADHAAR RETRIEVED")} āāā š³\n\n`;
- msg += `š¤ Name : ${session.retrievedName.toUpperCase()}\n`;
-
- const dobStr = session.dob || 'N/A';
- msg += `š DOB : ${dobStr}\n`;
-
- let finalAadhaar = 'N/A';
- const aadhaarMatch = extractedText.match(/\b\d{4}\s?\d{4}\s?\d{4}\b/g);
- if (aadhaarMatch) {
- finalAadhaar = aadhaarMatch[0];
- }
- msg += `š Aadhaar No : ${finalAadhaar}\n`;
-
- const passVal = foundPassword ? foundPassword : 'Protected (Locked)';
- msg += `š Password : ${passVal}\n\n`;
-
- msg += `
šŖ Deducted: ${access.isUnlimited ? '0 (Unlimited Plan)' : cost + ' Credits'}\nšŖ Remaining Balance: ${access.isUnlimited ? 'Unlimited' : leftCredits + ' Credits'}\n\n`; - msg += `ā” AADHAAR FAST SERVICES ā”`; + let msg = `āāāāć š AADHAAR PDF READY š ćāāāā®\n` + + `ā \n` + + `ā š¤ Name :
${session.retrievedName.toUpperCase()}\n` +
+ `ā š DOB : ${dobStr}\n` +
+ `ā š UID / No : ${finalAadhaar}\n` +
+ `ā š Password : ${passVal}\n` +
+ `ā \n` +
+ `ā š° Charged : ${access.isUnlimited ? '0 (VIP Pass)' : cost + ' Credits'}\n` +
+ `ā šŖ Balance : ${access.isUnlimited ? 'Unlimited' : leftCredits + ' Credits'}\n` +
+ `ā°āāāāāāāāāāāāāāāāāāāāāāāāāāāāāÆ\n` +
+ `ā” AADHAAR VIP ENGINE ā”`;
await ctx.replyWithDocument({ source: finalPdfBuffer, filename: `${session.retrievedName}_Aadhaar.pdf` }, { caption: msg, parse_mode: 'HTML' });
await saveSearchRecord(userId, session.serviceType, session.retrievedName, session.mobile, session.eidNumber, finalAadhaar, foundPassword, finalPdfBuffer);
[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.