Produza ProLab
Back to Developer Hub

Telegram Mini-App Boilerplate

The absolute fastest way to build Web3 and native Telegram Mini-Apps (TMA).

Architecture Overview

Tap into Telegram's 900M+ users. This boilerplate provides a seamless bridge between a React frontend running inside the Telegram Web App container and a Node.js backend. It includes TON wallet integration, native haptic feedback, MainButton manipulation, and secure initialization data validation.

Folder Structure

├── frontend/
│   ├── src/
│   │   ├── hooks/useTelegram.ts
│   │   └── App.tsx
├── backend/
│   └── src/
│       └── bot.ts
└── package.json

Code Preview

typescript
import WebApp from '@twa-dev/sdk'

export function useTelegram() {
  const initData = WebApp.initDataUnsafe;
  
  const showMainButton = (text: string) => {
    WebApp.MainButton.setText(text);
    WebApp.MainButton.show();
  }

  return {
    user: initData.user,
    showMainButton,
    hapticFeedback: WebApp.HapticFeedback
  }
}

Technical FAQ

Yes, a basic Telegraf bot is included to serve the Mini-App.

Lifetime Access

$49

Secured by Stripe

256-BIT ENCRYPTION SOC 2 COMPLIANT 99.9% UPTIME

Included in the box

  • InitData Validation
  • Cloud Storage Sync
  • Native UI Elements
  • Web3 Ready

Tech Stack

ReactTelegram Web Apps SDKViteTON Connect