diff --git a/server.js b/server.js index 52d9e92..a0d0458 100644 --- a/server.js +++ b/server.js @@ -1157,6 +1157,8 @@ async function telegramOnEvent(ev) { if (!sc.telegramChatId && !sc.telegramEchoChatId) return; const names = await accounts.namesForMembers([ev.recipientId, ev.buyerId, ev.sponsorId, ev.newBuyerId, ev.id].filter(Boolean)).catch(() => ({})); const who = id => '#' + id + (names[id] ? ' @' + names[id] : ''); + // a brand-new chain id is not mapped to its account yet when the activation lands, so the line read bare "#200" (Marty 2026-10-11): name them by wallet + if (ev.type === 'MemberActivated' && ev.id && !names[ev.id] && ev.account) { const a = await accounts.byAddress(ev.account).catch(() => null); if (a && a.username) names[ev.id] = a.username; } const cc = chain.getConfig(); const tx = (cc.explorer ? cc.explorer.replace(/\/+$/, '') : 'https://polygonscan.com') + '/tx/' + ev.tx; const build = async (mode) => {