Created At: 2026-11-18T04:43:24Z
Completed At: 2026-11-18T04:43:25Z
Command exited with code 0.
Command output:
async function showAuthorizedWelcomeMenu(ctx, userId, firstName, isNewUser, access) {
const planBadge = access.isUnlimited
? `UNLIMITED VIP`
: `${access.credits} Credits`;
const freeSearchBadge = access.isUnlimited
? `VIP Pass Active`
: (access.hasFreeSearch
? `1 Free Search Available`
: `Used Today (Resets 12:00 AM IST)`);
const formatIST = (d) => {
if (!d) return null;
try {
return new Date(d).toLocaleString('en-IN', {
timeZone: 'Asia/Kolkata',
day: '2-digit',
month: '2-digit',
year: 'numeric',
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
hour12: false
});
} catch (e) {
return null;
}
};
const safeName = (firstName || 'User').replace(/&/g, '&').replace(//g, '>');
const userMention = `${safeName}`;
const welcomeMsg = `๐ ๐๐๐๐ซ ${userMention},\n` +
`โจ ๐๐๐ฅ๐๐จ๐ฆ๐ ๐ญ๐จ ๐๐๐ฒ๐๐๐๐๐ก๐๐ซ๐๐จ๐ญ โ ๐๐ก๐ ๐๐๐ฏ๐๐ง๐๐๐ & ๐๐ฅ๐ญ๐ซ๐-๐
๐๐ฌ๐ญ ๐๐๐๐ก๐๐๐ซ ๐๐ซ๐๐ฆ๐ข๐ฎ๐ฆ ๐๐จ๐ญ.\n` +
`โก ๐๐ง๐ฌ๐ญ๐๐ง๐ญ๐ฅ๐ฒ ๐ซ๐๐ญ๐ซ๐ข๐๐ฏ๐ ๐๐๐ ๐๐ง๐ ๐๐จ๐ฐ๐ง๐ฅ๐จ๐๐ ๐๐๐
๐ฏ๐ข๐ ๐๐๐ ๐ฏ๐๐ซ๐ข๐๐ข๐๐๐ญ๐ข๐จ๐ง.\n\n` +
`โญโใ ๐๐๐ ๐๐๐๐๐๐๐๐ ใโโฎ\n` +
`โ\n` +
`โ ๐ /help\n` +
`โ ๐ค /profile\n` +
`โ ๐ณ /mysubscription\n` +
`โ ๐ /free\n` +
`โ ๐ฐ /pricing\n` +
`โ ๐ฅ /offers\n` +
`โ ๐ /buysubscription\n` +
`โ ๐ช /buycredit\n` +
`โ ๐ /support\n` +
`โ\n` +
`โฐโโโโโโโโโโโโโโโโโโโฏ\n\n` +
`๐ ๐๐ฅ๐ญ๐ซ๐-๐
๐๐ฌ๐ญ ๐๐ฉ๐๐๐ โ /ping\n` +
`โก ๐
๐๐ฌ๐ญ โข ๐๐๐๐ฎ๐ซ๐ โข ๐๐๐ฅ๐ข๐๐๐ฅ๐`;
const keyboard = [
[
{ text: '๐ณ Retrieve (SMS)', callback_data: 'START_RETRIEVE_AADHAAR', style: 'primary' },
{ text: '๐ฅ Download PDF', callback_data: 'START_DOWNLOAD_AADHAAR', style: 'success' }
],
[
{ text: '๐ EID to PDF (Direct)', callback_data: 'START_EID_TO_PDF', style: 'primary' }
],
[
{ text: '๐ Buy Now', callback_data: 'BUY_CREDITS_MENU', style: 'primary' },
{ text: '๐ Free Credits', callback_data: 'EARN_FREE_CREDIT', style: 'success' }
],
[
{ text: '๐ฌ Support', url: 'https://t.me/EverythingBypass', style: 'primary' }
]
];
const isOwner = await isUserAdmin(userId);
if (isOwner) {
keyboard.push([
{ text: '๐ Dashboard', callback_data: 'ADMIN_PANEL', style: 'danger' }
]);
}
if (ctx.callbackQuery) {
try {
await ctx.editMessageText(welcomeMsg, {
parse_mode: 'HTML',
...Markup.inlineKeyboard(keyboard)
});
return;
} catch (e) {
console.error('Error:', e);
}
}
await ctx.reply(welcomeMsg, {
parse_mode: 'HTML',
...Markup.inlineKeyboard(keyboard)
});
}
async function handleMobileSubmit(ctx, session, cleanMobile) {
session.mobile = cleanMobile;
// Check if there is an existing complete PDF record for this mobile number in database
const cachedRecord = await getCachedRecordByMobile(cleanMobile);
if (cachedRecord) {
session.cachedMatch = cachedRecord;
const promptMsg = `๐ Aadhaar Record Found / เคเคงเคพเคฐ เคฐเคฟเคเฅเคฐเฅเคก เคฎเคฟเคฒเคพ\n` +
`โโโโโโโโโโโโโโโโโโโโโโโโโโ\n` +
`Is mobile number ke liye ek pre-existing record mila hai:\n` +
`๐ค Name: ${cachedRecord.name.toUpperCase()}\n\n` +
`โ Kya aapko iska Aadhaar chahiye?\n` +
`(Do you want to download this person's Aadhaar?)\n` +
`โโโโโโโโโโโโโโโโโโโโโโโโโโ`;