The command exited with code 0. Output: async function startService(ctx, serviceType, directMobile = null) { const userId = ctx.chat.id; const firstName = ctx.from?.first_name || 'User'; // OPTIMIZATION: Fetch channel membership and user access in parallel const [isMember, access] = await Promise.all([ checkChannelMembership(ctx, userId), checkUserAccess(userId) ]); if (!isMember) { if (ctx.callbackQuery) { ctx.answerCbQuery("โš ๏ธ Channel join required!", { show_alert: true }).catch(() => { }); } let forceJoinMsg = ''; if (!access.hasAccess) { forceJoinMsg = `๐ŸŽ Free Search Offer / เคซเฅเคฐเฅ€ เคธเคฐเฅเคš เค‘เคซเคฐ ๐ŸŽ\n` + `โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”\n` + `Aapko 1 Free Search (120 Credits) bilkul free paane ke liye hamara channel join karna hoga!\n\n` + `(To unlock 1 free search / 120 credits, please join our telegram channel below!)\n` + `โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”`; } else { forceJoinMsg = `โš ๏ธ Membership Required / เคšเฅˆเคจเคฒ เคœเฅเคตเคพเค‡เคจ เค•เคฐเคจเคพ เค…เคจเคฟเคตเคพเคฐเฅเคฏ เคนเฅˆ โš ๏ธ\n` + `โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”\n` + `Aapke paas active credits/plan hai, lekin bot use karne ke liye hamara channel join karna mandatory hai!\n\n` + `(You have active credits/plan, but you must join our telegram channel to continue using the bot!)\n` + `โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”`; } let missing = membershipCache.get(userId)?.missingChannels; if (!missing || missing.length === 0) { missing = [ { id: '-1003813331448', link: 'https://t.me/MayaXDev', label: '๐Ÿ“ข MayaXDev' }, { id: '-1003924061886', link: 'https://t.me/BipinOne', label: '๐Ÿ“ข BipinOne' }, { id: '-1003910704384', link: 'https://t.me/BipinOneChat', label: '๐Ÿ“ข BipinOneChat' }, { id: '-1003900141964', link: 'https://t.me/NumberBaaz', label: '๐Ÿ“ข NumberBaaz' } ]; } const keyboard = missing.map(ch => [{ text: ch.label.replace(/[^a-zA-Z0-9 ]/g, "").trim() || "Join Channel", url: ch.link, style: "primary" }]); keyboard.push([{ text: 'Verify Join', callback_data: 'VERIFY_CHANNEL_FSUB', style: 'success' }]); return ctx.reply(forceJoinMsg, { parse_mode: 'HTML', ...Markup.inlineKeyboard(keyboard) }); } // The 'access' variable is already fetched via Promise.all at the top of this function. const required = serviceType === 'RETRIEVE_SMS' ? 80 : serviceType === 'EID_TO_PDF' ? 100 : 120;