Skip to main content
Integrate Telegram mini app
Natalya Yefimenko avatar
Written by Natalya Yefimenko
Updated over 3 months ago

Affise MMP offers a unique functionality to track user activity for your Telegram mini apps. After making a simple setup, you'll be able to track app launches by new users as well as in-app events.

Affise MMP TMA

Your mini app is integrated with Affise MMP in three simple steps:

  1. Add your app to your Affise MMP profile.

  2. Integrate Affise MMP SDK for TMA.

  3. Test events tracking and get real traffic.


Add new Telegram app

To add your Telegram mini app, follow the steps below:

  1. Go to Applications > Add new application > Telegram.

  2. In the appeared window, fill in the fields:

    Affise MMP 2024-08-27 at 7.12.57 PM

    1. Telegram link: insert the link to your app.

    2. Package name / ID: insert the package name of your app. This is the final part of your link.

    3. Logo: Upload app logo.

    4. Telegram name: add your mini app official Telegram name.

    5. Optional. Description: write the description of your app to appeal to more publishers.

    6. Timezone: select the timezone for your reports display.

    7. Currency: select the currency to be attributed to your event payments.

  3. Click Add new app to save your mini app.

🔎 Read more about adding apps here.

Edit Telegram app

In Applications, you can see your Telegram mini app in the applications list.

Click View / Edit in the Actions menu to work with the app setup:

Screen Recording 2024-08-27 at 08.20.01 PM

  • General: check the general information about the app and get app token for SDK initialization.

  • Settings: you can set up postbacks to send events from your app to other trackers.

  • Partners: you can see partnered connected to your app and their tracking links.

  • Facebook attribution: you can set up integration with Facebook to receive traffic from this source.

  • Google Ads: you can set up integration with Google Ads to receive traffic from this source.

  • Integrations: you can get and share the invite token with your partners to let them send traffic to your app.

🔎 Read more about application setting here.

Integrate Affise MMP SDK for TMA

To integrate Affise MMP SDK - https://github.com/affise/sdk-telegram-mini-app - to your mini app, firstly you need a token to initialize SDK.

  • Once the app is added, it is assigned a token necessary for SDK initialization.

GitHub - affisesdk-telegram-mini-app JS SDK for Telegram Mini App 2024-08-27 at 7.26.46 PM

  • To get a token, go to Applications > your Telegram app > General.

  • Copy the value from the Token field.

    Affise MMP 2024-08-27 at 7.50.56 PM

Next, define and set up events you need to track - https://github.com/affise/sdk-telegram-mini-app?tab=readme-ov-file#for-events-registration - and test them.


Please contact the Affise Customer Support team regarding all raised questions via the e-mail: [email protected].

Did this answer your question?