The path of one user
- You get shown
Another app shows yours to its users
- A person opens it
They open your app from the link
- Verifying
A first launch, or an event you chose
- Counted
Only now does the visit go into «Received»
For mini apps, bots and channels
New people from other apps, ad income and clear analytics in one dashboard
Exchange
You show other apps, they show yours. Free, no commission.
How exchange worksAds
Only where you switched them on yourself. Income builds up on your balance in USD₮.
How ads are switched onAnalytics
Who came, who stayed and who paid. No bot token needed for that.
What analytics showsDashboard
Turn on exchange in the dashboard and see how many people you sent and how many you received. All on one screen.
Start for freeYou show other apps, they show yours. Free.
Telegram mini apps, bots and channels. Everything is run from one dashboard.
User exchange with other apps, ads in the places you switched on, and analytics.
Ads in the bot's replies, broadcasts to your own users, and analytics: who starts the bot, where they came from and who blocked it. Broadcasts need the bot token.
Selling ad posts through the catalog at your rates, plus channel statistics. You receive your price in full: the advertiser pays the platform fee on top.
Integration
Give the text to the agent that works on your code: Claude Code, Cursor or Codex. It studies the project and sends a list of places in one message. It adds nothing users can see without your reply.
Connect this project to Platformy end to end: analytics, payments, ads, user exchange with other apps, user verification. My pubId: your_pubId
Hosts: SDK https://platfor.my/sdk.js, API https://platfor.my. Work through every step, skip nothing; ask me only for what cannot be found in the project.
1. Read https://platfor.my/agent/integrate.md (and https://platfor.my/agent/sdk-reference.md) in full and follow them.
2. Detect the project type and pick the integration path: plain HTML; React/Next.js; an app on @telegram-apps/sdk (without telegram-web-app.js); a game exported to WebGL (Unity, Godot, Cocos, Construct, Phaser), including one running inside an iframe of a wrapper page; a bot without a Mini App (inline API from the guide).
3. Load telegram-web-app.js (if the project uses it) and https://platfor.my/sdk.js before the app code. Call Platformy.init({ pubId, botId, initData?, events }) exactly once, on every load of the Mini App page, before any other Platformy call.
4. botId (required for user verification): it is the bot numeric id, the digits before the colon of the bot token. Look for the token in the whole project including the backend and its env or config (BOT_TOKEN etc.) and pass only those digits as botId. Never copy, print, log or send the token itself. The id is public, so it may be written in client code. If the token is nowhere in the project, ask me once for the numeric bot id (not the token).
5. initData (Telegram user data): make sure it reaches the SDK. If the app runs in an iframe of another origin or in an engine without window.Telegram, pass the Telegram.WebApp.initData string from the wrapper page into the game: wrapper -> iframe.contentWindow.postMessage({ type: "platformy:init", initData: Telegram.WebApp.initData }, "<game origin>"); in the game listen for message (check event.origin) and call Platformy.init({ pubId, botId, initData }) once received. For Unity/Godot pass the string through the JS bridge (jslib / JavaScriptBridge) and call init on the JS side. Examples in integrate.md.
6. Payments: find every payment flow (search: openInvoice, createInvoiceLink, sendTransaction, tonConnect). After every successful Stars payment (invoice closed with status paid) and every TON/USDT transaction signed by the user, call Platformy.purchase({ amount, currency: "XTR" | "TON" | "USDT", item }) with real values (exact spots: integrate.md, 4.5; if the invoice is opened in a wrapper or iframe rather than this page, call it at the moment of paid). Do not break payment logic. If payments go through the bot (sendInvoice / createInvoiceLink with successful_payment delivered to the bot): in the bot server successful_payment handler call POST https://platfor.my/api/v1/payments with the app secret key (key only in the bot server env, never in client code) and fields tgUserId, amount (total_amount), currency, telegramPaymentChargeId, invoicePayload; Node and Python snippets: integrate.md, 4.5.
7. App events: scan the code and find the meaningful user actions worth rewarding or measuring (planting, crafting, purchase, level, inviting a friend, daily login, quest, opening a wallet, etc.). For each pick a stable snake_case name and call Platformy.goal("<name>") exactly at the point of success (after confirmation, not on click); for numeric ones (level, score) pass { value: N }. Call goal() only from the Mini App page where Platformy.init ran, so the player goes with it: never from a server, a bot, a page opened outside Telegram or another origin without initData. An event sent without the player counts for nobody. Declare the catalog once in init: title = what happened, in Russian (the owner sees it); task = a short call to action for players (imperative, max 30 chars) in Russian and English plus every other language the app supports, it becomes the text other apps show to their players: Platformy.init({ pubId, botId, events: { tree_planted: { title: "Planted a tree", task: { ru: "Посади дерево", en: "Plant a tree" } }, wheel_spin: { title: "Spun the wheel", task: { ru: "Крути рулетку", en: "Spin the wheel" } }, level: { title: "Level", numeric: true, task: { ru: "Прокачай уровень", en: "Level up" } } } }). Declare only events that have a goal() call which really fires; do not declare events you do not send. The owner will pick any of them as the condition for players coming from other apps.
8. Ad placements: name them and add banners, rewarded and interstitial only where it does not hurt UX (rewarded only on a user action). They will appear in the panel with toggles; do not enable anything in the panel yourself.
9. Exchange tasks: put our tasks where the app shows its own tasks (an earn or tasks screen); I switch the exchange on in the panel. Render them with the app OWN task component and styles (same card, colours, radius, button as its native tasks), not the built-in SDK card: items = await Platformy.tasks({ placement }) (plain data: id, title, subtitle, image, buttonLabel, label, status; label is the small "Partner" marker, show it in the muted text style); on tap call item.open() (it keeps clicks, serve tokens and the launch parameter working), then item.check() if status becomes started and flow is check; Platformy.onTaskCompleted(fn) updates the UI and gives the in-app reward. Never rebuild links or tracking yourself. Look at the result and make sure these tasks are indistinguishable from native ones except the marker. Only if the app has no task list at all, use the built-in card: Platformy.tasks("#el", { onReward }) (sdk-reference.md).
10. Start parameters: players sent by Platformy arrive with a start parameter that begins with pf_, p_ or pt_ (pt_ marks a launch from a paid task: keep the SDK session start working, that is how the launch is counted). If the app reads start_param for its own referral or deep-link logic, ignore these values there (do not treat them as a referral code, do not show an error) and let the app open normally.
11. Look: our ad modals, banners and task wall must look like part of this app. Take the main background, surface, text, accent (primary button) color, corner radius and font from the app design (CSS variables, theme files, canvas/game palette) and pass them once: Platformy.init({ ..., theme: { bg, surface, text, accent, radius, font } }) (details: https://platfor.my/agent/sdk-theme.md). Required for canvas/WebGL games and gradient backgrounds, where colors cannot be read from the page.
12. If the project has a bot backend: forward every incoming Telegram update (raw Update) to POST https://platfor.my/api/v1/bot-updates with Authorization: Bearer <app secret key> (key only from the bot server env). Fire-and-forget only: do not await the response, 2 s timeout, swallow all errors, never block or crash the bot. Prefer buffering and sending batches of up to 100 once per second. Add my_chat_member, chat_member and chat_join_request to the bot allowed_updates without removing the ones already used. We do not store message text. Snippets for Node (grammY, telegraf, node-telegram-bot-api) and Python (aiogram, python-telegram-bot): integrate.md, 4.5.1. No bot backend: skip this step.
13. Ship and check on the live app: deploy to production (test mode ?platformy_test=1 is only for a first local look, never leave test: true in production). Open the real app inside Telegram, perform each declared action once, then open https://platfor.my/serve/status?pubId=Found a React mini app. Here is where ads could go:
extra_lifelevel_endhome_topWhich should I turn on? Reply with numbers, "all" or "none".
Exchange
You show other apps, they show yours. Free. A click alone means nothing: a first launch does not count if the person has already been in the app.
Exchange is free for both sides
Turn it on once and exchange with every app on the platform
One user counts for an app only once, ever
Another app shows yours to its users
They open your app from the link
A first launch, or an event you chose
Only now does the visit go into «Received»
For every app: how many times you were shown, how many taps and how many people arrived.
| App | Impressions | Clicks | Received | CR |
|---|---|---|---|---|
| Farm | 18,420 | 1,840 | 612 | 33.3% |
| Pixels | 12,950 | 1,295 | 438 | 33.8% |
| Words | 6,110 | 402 | 171 | 42.5% |
| Racing | 4,380 | 356 | 96 | 27.0% |
| Minenot connected yet |
Ads
Every place is switched on and off in the dashboard. No code changes and no app update. Advertisers buy the places, and what you earn goes to your balance.
Every place has its own switch. Try them: they work.
extra_lifelevel_endhome_topshop_exitIn a bot without a mini app, ads are built into replies, and you set the frequency and the daily limit yourself.
Analytics
One script in the app, no bot token needed. After that everything shows up in the dashboard.
Users and retention by week of arrival.
| Week | New | Day 0 | 1 | 3 | 7 | 14 | 30 |
|---|---|---|---|---|---|---|---|
| Oct 13 | 1,204 | 100% | 46% | 31% | 22% | 15% | 9% |
| Oct 20 | 1,378 | 100% | 48% | 33% | 24% | 16% | |
| Oct 27 | 1,142 | 100% | 44% | 30% | 21% | ||
| Nov 3 | 1,516 | 100% | 51% | 35% | |||
| Nov 10 | 1,463 | 100% | 49% |
Exchange, channels, direct links and ads: the share of each.
Telegram Stars show up when the invoice closes. Wallets and transactions via TON Connect are recorded automatically; your app reports the amounts, and we do not check them against the blockchain yet.
Which phones and systems people use.
Invite other apps. You get 10% of the platform commission from the ones you invited.
No password, no email: you sign in through our bot.
A link or @username. Your pubId and a ready prompt appear in the dashboard.
Give the prompt to your agent and choose which spots and exchange to turn on.
Yes. Sign-in, the dashboard, analytics and exchange cost nothing, there is no subscription. Advertisers pay for impressions.
A click does not count; a confirmed action in the app the person arrived at does: the first launch of a new user, or an event the owner chose. One user is counted for an app once, ever.
A mini app or bot, and the pubId from your dashboard. You can hand the prompt to an agent or connect everything by hand using the docs. A bot without a mini app also needs a secret key from the dashboard, which stays on your server.
No. Ads and analytics need nothing, and for exchange it is enough to enter the bot ID in the dashboard: the number before the colon in the token. We do not need the token itself.
Yes. Bots get ads, broadcasts and analytics, and channel owners sell ad posts through the catalog and see channel statistics.
Everything you earn goes to your balance in USD₮. To withdraw, create a request and enter an address on the TON network. The team processes requests manually.
Yes: for people you invite you get 10% of the platform commission.
Sign in with Telegram, then one prompt and a few switches.