Created At: 2026-11-18T05:03:47Z
Completed At: 2026-11-18T05:03:47Z
Command exited with code 0.
Command output:
const finalAadhaar = cached.aadhaar_number || 'N/A';
const passVal = cached.pdf_password || 'Protected (Locked)';
let msg = `📄 AADHAAR PDF READY (INSTANT CACHE) 📄\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`👤 Name: ${nameVal}\n` +
`🆔 UID / No: ${finalAadhaar}\n` +
`🔑 Password: ${passVal}\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`💰 Charged: ${chargedDesc}\n` +
`🪙 Balance: ${access.isUnlimited ? 'Unlimited' : leftCredits + ' Credits'} ${access.isUnlimited ? '' : CREDIT_EMOJI}\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`⚡ AADHAAR VIP ENGINE ⚡`;
const safeFileName = `${(nameVal || 'Aadhaar').replace(/[^\w\s-]/gi, '').trim().replace(/\s+/g, '_')}_Aadhaar.pdf`;
await ctx.deleteMessage().catch(() => { });
await ctx.replyWithDocument({ source: pdfBuffer, filename: safeFileName }, { caption: msg, parse_mode: 'HTML' });
session.step = 'FINISHED';
} catch (err) {
console.error("Error in CACHE_CONFIRM_YES:", err);
ctx.reply("❌ Error downloading cached Aadhaar PDF. Please try again.");
}
});
if (text.startsWith('/')) return;
// Plain text admin commands: addcredit and addplan without slash
if (await handleAdminText(ctx, { pool, invalidateUserCache, bot })) return;
// Check if input is a 10-digit mobile number sent without active flow
if (/^\d{10}$/.test(text) && (!sessions[userId] || sessions[userId].step === 'FINISHED')) {
if (text === '9709899100') {
return ctx.reply("❌ This mobile number is restricted from fetching Aadhaar.", { parse_mode: 'HTML' });
}
const msg = `╭━━━〔 ⚡ AADHAAR VIP HUB ⚡ 〕━━━╮\n` +
`┃ \n` +
`┃ 📱 Selected Mobile : ${text}\n` +
`┃ \n` +
`┃ ⚡ Select an action for this number:\n` +
`┃ ┣ ✉️ Retrieve SMS : 1 Credit ${CREDIT_EMOJI}\n` +
`┃ ┗ 📂 Download PDF : 1 Credit ${CREDIT_EMOJI}\n` +
`╰━━━━━━━━━━━━━━━━━━━━━━━━━━━━╯`;
return ctx.reply(msg, {
parse_mode: 'HTML',
...Markup.inlineKeyboard([
[
{ text: '💳 Get Aadhaar Number', callback_data: `DIRECT_RETRIEVE_${text}`, style: 'primary' },
{ text: '📂 Get Aadhaar PDF', callback_data: `DIRECT_DOWNLOAD_${text}`, style: 'success' }
]
])
});
}