Skip to main content

Checklist

  • Create an account with us at Telemetree
  • Grab your API Key and project ID from the onboarding page
  • Initiate one of our SDKs:
  • Send your first event
  • Access your dashboard

Setup your development

Learn how to setup Telemetree with your project and start sending events.

Installing React SDK

Github: our React TWA boilerplate to make your life easier!
Github | NPM Install Telemetree React SDK using npm or yarn
npm install @tonsolutions/telemetree-react
Please consult with the full integration guide for Telegram initialization options.
Use the TwaAnalyticsProvider component to wrap your application’s root component. This enables analytics tracking throughout your app.
import { TwaAnalyticsProvider } from '@tonsolutions/telemetree-react';

export function App() {
  return (
    <TwaAnalyticsProvider
      projectId='YOUR_PROJECT_ID'
      apiKey='YOUR_API_KEY'
      appName='YOUR_APPLICATION_NAME'
    >
      {/* Rest of your app components */}
    </TwaAnalyticsProvider>
  );
}

Installing Python SDK

PyPi Install Telemetree Python SDK using pip
pip
pip install telemetree
To start tracking events, you need to create an instance of the Telemetree class.
from fastapi import APIRouter, Request
from telegram import Update
from telemetree import TelemetreeClient

router = APIRouter()
telemetree = TelemetreeClient(
    "your_api_key", "your_project_key"
)

Accessing dashboards

1

Sign up

Create an account at Telemetree — it’s 100% free!
2

Verify your email

Verify your email and proceed to the dashboard.
3

Connect your app

Before you get access to your dashboard, please, use one of our SDKs to connect your app to Telemetree. Download our SDK and integrate it into your project.
4

Send your first event

After our SDK captures at least one event from your app, you will get access to your dashboard. Important: it may take up to 60 minutes for the event to appear in your dashboard.

Additional resources

Useful links that will help you in designing and developing a Telegram app.
I