Created At: 2026-11-18T04:54:14Z
Completed At: 2026-11-18T04:54:14Z
Command exited with code 0.
Command output:
[{ text: 'No DOB', callback_data: 'CHOOSE_WITHOUT_DOB', style: 'primary' }]
])
});
return;
}
if (session.step === 'WAITING_FOR_DOB_VAL') {
session.dob = text;
session.step = 'SOLVING_CAPTCHA';
const ldr = await ctx.reply('⏳ Loading... Please wait.', { parse_mode: 'HTML' });
await autoSolveAndRequestOtp(ctx, session, 1, ldr.message_id);
return;
}
if (session.step === 'WAITING_FOR_OTP') {
session.otpValue = text;
const oLdr = await ctx.reply('⏳ Verifying OTP... Please wait.', { parse_mode: 'HTML' });
session.otpLoaderId = oLdr.message_id;
try {
const finalReqBody = {
mobile: session.mobile,
dob: session.dob,
name: session.name,
otp: session.otpValue,
otpTxnId: session.otpTxnId,
captchaValue: session.captchaValue,
captchaTxnId: session.transactionId,
option: session.serviceType === 'DOWNLOAD_PDF' ? 'EID' : 'UID'
};
const finalResponse = await callApi('/verifyotp', {
method: 'POST',
body: JSON.stringify(finalReqBody)
});
const data = await finalResponse.json();
if (finalResponse.ok && data.status === "success") {
if (session.otpLoaderId) {
ctx.telegram.deleteMessage(userId, session.otpLoaderId).catch(() => { });
}
if (session.serviceType === 'RETRIEVE_SMS') {
const name = data.data.name;
const uidNumber = data.data.uidNumber;
const formattedUid = uidNumber ? uidNumber.replace(/(\d{4})(\d{4})(\d{4})/, '$1 $2 $3') : 'N/A';
const access = await checkUserAccess(userId);
let leftCredits = access.credits;
let chargedDesc = '';
if (access.isUnlimited) {
setCooldown(userId, 'RETRIEVE_SMS');
chargedDesc = '0 (VIP Pass)';
} else if (access.hasFreeSearch) {
await markDailyFreeSearchUsed(userId);
chargedDesc = '0 (Daily Free Search)';
} else {
leftCredits = await deductUserCredit(userId, 1);
chargedDesc = `1 Credit ${CREDIT_EMOJI}`;
}
const responseMsg = `💳 AADHAAR RETRIEVED 💳\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`👤 Owner Name: ${name.toUpperCase()}\n` +
`🆔 Aadhaar No: ${formattedUid}\n` +
`📱 Registered: ${session.mobile}\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`💡 Full unmasked UID has been sent via official SMS.\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`💰 Charged: ${chargedDesc}\n` +
`🪙 Balance: ${access.isUnlimited ? 'Unlimited' : leftCredits + ' Credits'} ${access.isUnlimited ? '' : CREDIT_EMOJI}\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`⚡ AADHAAR VIP ENGINE ⚡`;
ctx.reply(responseMsg, { parse_mode: 'HTML' });