
Telegram Mini Apps
Authorization System & Telegram WebApp Integration
We built a robust authorization system that ensures users are always correctly identified regardless of entry point.
Smart authentication flow
- Automatic authorization via personal link with embedded hash
- Fallback mechanism through Telegram bot if cookies are cleared
- Automatic Telegram ID synchronization with database
- Referral hierarchy recording even before user registration
Result
The platform always correctly identifies the user, traffic source, and upstream referrer, ensuring accurate referral tracking and seamless experience.
Games Catalog & Monitoring
A marketplace for mini-games
We created a discovery platform similar to app stores but tailored for the tap-to-earn ecosystem.
Filtering and sorting
- Sort by date, activity, popularity
- Filter by status, rating, launch date
- Project preview cards with logo, description, rating, status
- "Add Project" button with submission guidelines
Individual game page
- Logo and title
- 10-point rating system
- Status (active, listing, disabled)
- Full description
- Reviews with moderation
- Ability to leave reviews with ratings
- "Play" button with automatic referral tracking
Gaming Hub
PVP games and lottery system
We developed a complete gaming module with multiple game types and fair mechanics.
Game 1: Rock-Paper-Scissors
- Pre-created rooms with fixed stakes
- Player matching system for second slot
- Best of 1-3 rounds
- Winner takes entire stake
Game 2: Bingo
- Rooms with fixed ticket prices
- Multiple card purchases allowed
- Waiting lobby until game starts
- Number generation at set intervals
- "Bingo" button for winner declaration
- Prize pool formed from ticket sales
Game 3: Lottery "6 out of 49"
- Ticket purchasing system
- Select 6 numbers
- Winning combination generation every X minutes
- Jackpot distribution for 3/4/5/6 matches
- Rollover when no winners
User interfaces
- Game selection menu
- Available rooms preview
- Interactive waiting room
Financial System
Unified token economy
We created a single token balance system integrated with the main tap-to-earn app.
Token flow
- Token deposit via API request to main app
- Verification of deduction on app side
- Credit to TapPad balance
- Withdrawal back to main app
- Unified wallet for PVP games and lottery
Architecture
The system is designed to support multiple currencies in the future, with flexible balance management and transaction tracking.
Admin Panel
Complete ecosystem control
A comprehensive management system for the entire platform.
User management
- User and balance control
- Data and referral structure editing
- Project addition and editing
- Review moderation
- News management
- Game and room control
- Add/remove games on platform
Technical breakthrough
- Real-time WebSocket communication for live games
- Redis-based queue and timer management
- Scalable architecture supporting hundreds of games
- Telegram WebApp deep linking integration
- Fair randomness generation for games
Node.js
React.js, Next.js, Flutter
WebSockets for live game logic
Redis, PostgreSQL, Docker
Custom PVP logic, random generators, room timers
Main app API, referral system, Telegram ID → TapPad account
Telegram WebApp / Bot API
