Platformy соединяет мини-приложения между собой. Вы показываете чужие приложения своим игрокам, они показывают ваше. Там, где вы разрешили, идёт реклама, и доход копится на балансе в USD₮.
Обмен
К вам приходят новые люди
Вы показываете приложения других, они показывают ваше. Бесплатно и без комиссии.
Вы показываете приложения других, они показывают ваше. Бесплатно.
Отправили
1 284
Получили
1 317
ФЕФерма+612
ПИПиксели+438
СЛСлова+171
Для чего подходит
Мини-приложения, боты и каналы в Telegram. Всё ведётся в одном кабинете.
Мини-приложения
Обмен пользователями с другими приложениями, реклама в местах, которые вы включили, и аналитика.
Боты
Реклама в ответах бота, рассылки своим пользователям и аналитика: кто запускает бота, откуда пришёл и кто его заблокировал. Для рассылок нужен токен бота.
Каналы
Продажа рекламных постов через каталог по вашим тарифам и статистика канала. Вы получаете свою цену целиком: комиссию платформы платит рекламодатель сверху.
Подключение
Подключение одним промптом
Отдайте текст агенту, который работает с вашим кодом: Claude Code, Cursor или Codex. Он изучит проект и пришлёт список мест одним сообщением. Ничего заметного для пользователей без вашего ответа не добавит.
Промпт для агентаpubId подставится в кабинете
Connect this project to Platformy end to end: analytics, payments, ads, user exchange with other apps, user verification. My pubId: ваш_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=
Ответ агента
Нашёл мини-приложение на React. Куда можно поставить рекламу:
Кнопка «Ещё одна жизнь»: реклама за награду extra_life
Конец уровня: полноэкранная реклама level_end
Верх главного экрана: баннер home_top
Какие включить? Ответьте номерами, «все» или «ничего».
Вы1 и 2
Обмен
Новые пользователи без рекламного бюджета
Вы показываете приложения других, они показывают ваше. Бесплатно. Клик сам по себе ничего не значит: первый запуск не считается, если человек уже был в приложении.
Без комиссии
Обмен бесплатный для обеих сторон
Один тумблер
Включили один раз, меняетесь со всеми приложениями платформы
Действие, а не клик
Один пользователь засчитывается приложению один раз за всё время
Путь одного пользователя
Вас показывают
Другое приложение показывает ваше своим пользователям
Человек переходит
Открывает ваше приложение по ссылке
Проверка
Первый запуск или событие, которое вы выбрали
Засчитано
Только теперь переход попадает в «Получили»
Видно, как идёт обмен
По каждому приложению: сколько раз вас показали, сколько нажали и сколько людей дошло.
Доходят до вас
34% нажавших
Хорошо: люди доходят до цели.
Нажимают на приложения у вас
4% показов
Хорошо: людям интересно.
Нажимают на ваше приложение
2% показов
Низко: попробуйте другой текст или картинку.
С кем меняетесь
Приложение
Показы
Клики
Получено
CR
ФЕФерма
18 420
1 840
612
33,3%
ПИПиксели
12 950
1 295
438
33,8%
СЛСлова
6 110
402
171
42,5%
ГОГонки
4 380
356
96
27,0%
ШАШахтаещё не подключилось
Реклама
Реклама только там, где вы разрешили
Каждое место включается и выключается в кабинете. Без правок кода и без обновления приложения. Места покупают рекламодатели, заработанное приходит на ваш баланс.
Рекламные места
У каждого места свой тумблер. Попробуйте: они нажимаются.
Рекламные места2 из 4 включены
Кнопка «Ещё одна жизнь»
За награду extra_life
Конец уровня
Полноэкранная level_end
Верх главного экрана
Баннер home_top
Выход из магазина
Полноэкранная shop_exit
Три формата
В боте без мини-приложения реклама встраивается в ответы, а частоту и дневной лимит вы задаёте сами.
Баннер
Полноэкранная
За награду
Аналитика
Понятно, кто приходит, остаётся и платит
Один скрипт в приложении, токен бота не нужен. Дальше всё видно в кабинете.
Сколько людей возвращается
Пользователи и удержание по неделям прихода.
Неделя
Новых
День 0
1
3
7
14
30
13 окт
1 204
100%
46%
31%
22%
15%
9%
20 окт
1 378
100%
48%
33%
24%
16%
27 окт
1 142
100%
44%
30%
21%
3 нояб
1 516
100%
51%
35%
10 нояб
1 463
100%
49%
Откуда приходят
Обмен, каналы, прямые ссылки и реклама: доля каждого.
Обмен41%
Telegram-каналы27%
Прямые ссылки19%
Реклама13%
Кто платит
Telegram Stars видны по закрытию счёта. Кошельки и транзакции через TON Connect пишутся сами; суммы сообщает ваше приложение, с блокчейном мы их пока не сверяем.
Да. Вход, кабинет, аналитика и обмен ничего не стоят, абонентской платы нет. За показы платят рекламодатели.
Как считается обмен?
Считается не клик, а подтверждённое действие в приложении, куда пришёл человек: первый запуск нового пользователя или событие, которое выбрал владелец. Один пользователь засчитывается приложению один раз за всё время.
Что нужно для подключения?
Мини-приложение или бот и pubId из кабинета. Промпт можно отдать агенту, а можно подключить всё вручную по документации. Для бота без мини-приложения понадобится ещё секретный ключ из кабинета: он хранится на вашем сервере.
Нужно ли отдавать токен бота?
Нет. Для рекламы и аналитики ничего не нужно, а для обмена достаточно указать в кабинете ID бота: это число до двоеточия в токене. Сам токен нам не нужен.
Подходит ли для ботов и каналов?
Да. Ботам доступны реклама, рассылки и аналитика, а владельцы каналов продают рекламные посты через каталог и видят статистику канала.
Как выводить деньги?
Всё заработанное приходит на баланс в USD₮. Для вывода создайте заявку и укажите адрес в сети TON. Команда обрабатывает заявки вручную.
Есть реферальная программа?
Да: за приглашённых вы получаете 10% комиссии платформы.
Подключите первое приложение
Вход через Telegram, дальше один промпт и несколько тумблеров.