For mini apps, bots and channels

People and money for your Telegram project

New people from other apps, ad income and clear analytics in one dashboard

Platformy connects mini apps with each other. You show other apps to your players, they show yours. Ads run where you allowed them, and the income builds up on your balance in USD₮.

  • Exchange

    New people come to you

    You show other apps, they show yours. Free, no commission.

    How exchange works
  • Ads

    Ads bring in money

    Only where you switched them on yourself. Income builds up on your balance in USD₮.

    How ads are switched on
  • Analytics

    You see what is going on

    Who came, who stayed and who paid. No bot token needed for that.

    What analytics shows

Dashboard

One switch, and other apps start showing yours

Turn on exchange in the dashboard and see how many people you sent and how many you received. All on one screen.

Start for free

What it is for

Telegram mini apps, bots and channels. Everything is run from one dashboard.

  • Mini apps

    User exchange with other apps, ads in the places you switched on, and analytics.

  • Bots

    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.

  • Channels

    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

Connect with one prompt

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.

Agent promptpubId is filled in in the dashboard
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=
Agent reply

Found a React mini app. Here is where ads could go:

  1. "Extra life" button: rewarded ad extra_life
  2. End of level: full-screen ad level_end
  3. Top of the main screen: banner home_top

Which should I turn on? Reply with numbers, "all" or "none".

You1 and 2

Exchange

New users without an ad budget

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.

  • No commission

    Exchange is free for both sides

  • One switch

    Turn it on once and exchange with every app on the platform

  • An action, not a click

    One user counts for an app only once, ever

The path of one user

  1. You get shown

    Another app shows yours to its users

  2. A person opens it

    They open your app from the link

  3. Verifying

    A first launch, or an event you chose

  4. Counted

    Only now does the visit go into «Received»

See how the exchange is going

For every app: how many times you were shown, how many taps and how many people arrived.

Reach you
34% of those who tapped
Good: people reach the goal.
Taps on apps shown in yours
4% of shows
Good: people are interested.
Taps on your app
2% of shows
Low: try a different text or picture.
Who you exchange with
AppImpressionsClicksReceivedCR
Farm18,4201,84061233.3%
Pixels12,9501,29543833.8%
Words6,11040217142.5%
Racing4,3803569627.0%
Minenot connected yet

Ads

Ads only where you allow them

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.

Ad placements

Every place has its own switch. Try them: they work.

Ad placements2 of 4 on
"Extra life" button
Rewarded extra_life
End of level
Fullscreen level_end
Top of the home screen
Banner home_top
Leaving the shop
Fullscreen shop_exit

Three formats

In a bot without a mini app, ads are built into replies, and you set the frequency and the daily limit yourself.

  • Banner
  • Fullscreen
  • Rewarded

Analytics

Clear who comes, stays and pays

One script in the app, no bot token needed. After that everything shows up in the dashboard.

How many people come back

Users and retention by week of arrival.

WeekNewDay 01371430
Oct 131,204100%46%31%22%15%9%
Oct 201,378100%48%33%24%16%
Oct 271,142100%44%30%21%
Nov 31,516100%51%35%
Nov 101,463100%49%

Where they come from

Exchange, channels, direct links and ads: the share of each.

  • Exchange41%
  • Telegram channels27%
  • Direct links19%
  • Ads13%

Who pays

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.

  • gold_packTelegram Stars100 StarsPaid
  • no_adsTelegram Stars250 StarsPaid
  • season_passTON Connect1.5 TONAmount set by the app

Which devices

Which phones and systems people use.

  • Android58%
  • iOS33%
  • Desktop9%

For advertisers

Buy placements and see what you got

Open the dashboard
Catalog
Mini apps and bots with audience size, languages, countries and price. Sort by audience or price.
Formats
Messages in a bot, required subscription, banner and full-screen ads.
Targeting
Country, language, gender, age, device, system, Telegram Premium. Hourly schedule and a daily limit per person.
Stats
Impressions, clicks, launches, CTR and CR by day, broken down by campaign.
Payment
Balance in USD₮, topped up by a transfer on the TON network.

How to start

Invite other apps. You get 10% of the platform commission from the ones you invited.

  1. Sign in with Telegram

    No password, no email: you sign in through our bot.

  2. Add your app or bot

    A link or @username. Your pubId and a ready prompt appear in the dashboard.

  3. Connect and switch on

    Give the prompt to your agent and choose which spots and exchange to turn on.

Frequently asked questions

More in the documentation
Is it free?

Yes. Sign-in, the dashboard, analytics and exchange cost nothing, there is no subscription. Advertisers pay for impressions.

How does the exchange count?

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.

What do I need to connect?

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.

Do I need to share my bot token?

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.

Does it work for bots and channels?

Yes. Bots get ads, broadcasts and analytics, and channel owners sell ad posts through the catalog and see channel statistics.

How do I withdraw money?

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.

Is there a referral program?

Yes: for people you invite you get 10% of the platform commission.

Connect your first app

Sign in with Telegram, then one prompt and a few switches.