Created At: 2026-11-18T04:13:22Z Completed At: 2026-11-18T04:13:22Z Command exited with code 0. Command output: return cached.joined; } } try { const requiredChannels = [ { id: '-1003813331448', link: 'https://t.me/MayaXDev', label: '📢 MayaXDev' }, { id: '-1003900141964', link: 'https://t.me/NumberBaaz', label: '📢 NumberBaaz' } ]; const joinedStatuses = ['creator', 'administrator', 'member', 'restricted']; let allJoined = true; let missingChannels = []; for (const ch of requiredChannels) { try { const member = await ctx.telegram.getChatMember(ch.id, userId); if (!joinedStatuses.includes(member.status)) { allJoined = false; missingChannels.push(ch); } } catch (err) { allJoined = false; missingChannels.push(ch); } } membershipCache.set(userId, { joined: allJoined, timestamp: now, missingChannels }); return allJoined; } catch (err) { console.error("Error checking channel membership:", err.message); // If bot is not in the channel or not admin yet, fail-safe to true so we don't crash return true; } } // ── DAILY FREE SEARCH ENGINE ────────────────────────────────────── const dailyFreeSearchesFallback = {};