From f8763513912f354a081f291b5305c3f403cc686f Mon Sep 17 00:00:00 2001 From: martbost Date: Sun, 23 Aug 2026 06:32:51 -0500 Subject: [PATCH] Mini App join funnel: startapp sponsor attribution + wallet-app handoff - /app decodes startapp=[_] -> unlinked visitors land on the sponsor squeeze page /join/?src=miniapp (linked members still go to their dashboard); no-invite prospects get a gold Join button -> /join-now - tg-app.js: sync __rmcInTg flag; external links route out of the webview via openLink/openTelegramLink (wallet deep links reach the wallet app reliably) - join-now.js in the webview leads with the MetaMask/Trust deep links (no injected wallet can exist there); ref + src survive into the wallet browser - tgbot: links command + weekly digest include the t.me//?startapp Telegram-native invite once config.miniAppShortName is set (new PATCH key) - Synced chat.js canned answer + AI prompt (prospects can join from the app) Co-Authored-By: Claude Fable 5 --- private/join-now.html | 2 +- public/app.html | 3 ++- public/app.js | 16 +++++++++++++++- public/chat.js | 2 +- public/join-now.js | 9 +++++++++ public/tg-app.js | 18 ++++++++++++++++++ server.js | 4 ++-- tgbot.js | 13 ++++++++++++- 8 files changed, 60 insertions(+), 7 deletions(-) diff --git a/private/join-now.html b/private/join-now.html index 0992066..e7360e5 100644 --- a/private/join-now.html +++ b/private/join-now.html @@ -67,4 +67,4 @@

No income is guaranteed. Cryptocurrency and smart-contract participation carry risk. Only use funds you can afford to lose.

- + diff --git a/public/app.html b/public/app.html index b3eea35..fc9abcb 100644 --- a/public/app.html +++ b/public/app.html @@ -14,7 +14,8 @@

This app shows YOUR live dashboard — payments, team, coaching. To prove a position is yours, link it once with your wallet (a free signature, it can't move funds):

1. Open rmcircle.team/my in your browser
2. Enter your member ID → Messages → sign in with your wallet
3. Tap “Connect Telegram” — it deep-links right back to this bot

-

+

+