Project Overview
This document provides a technical and business overview of the Telegram Mini-Games application, a web-based mini-app designed to operate within the Telegram ecosystem, leveraging Telegram Gifts as a core in-game currency.
Core Business Logic
The application's primary function is to facilitate multi-player, peer-to-peer mini-games using a gift pooling system where a single winner takes the majority of the pot.
Game Economy
80% Payout: The winner of each round receives 80% of the total gifts contributed. The remaining 20% is retained by the platform for costs and prizes.
Value-Based Entries
A player's number of entries or "seats" in a round is directly proportional to the value of the gifts they use, increasing their odds of winning.
Game Mechanics
The platform will launch with four distinct games, each designed for a fast-paced, multi-player experience. Click on a game to see its specific rules and player limits.

Roulette

Double Dice

Plinko
Wheel
Leaderboard & Prizes
To encourage engagement, a global leaderboard will rank players by the total value of gifts used. Top players will be rewarded with rare Telegram Gifts.
Rank | Player | Volume |
---|---|---|
1 | Player_Alpha | 🎁 1,250,000 |
2 | Player_Beta | 🎁 980,000 |
3 | Player_Gamma | 🎁 760,000 |
Proposed Tech Stack
The application will be built on a modern, scalable, and real-time stack suitable for the Telegram Mini App environment.
Frontend
A single-file HTML/CSS/JS application built with Tailwind CSS for rapid, responsive UI development.
Backend & Data
Firebase Firestore will serve as the real-time backend for managing users, game states, and leaderboards.
Authentication
Seamless and secure user login will be handled via Telegram's built-in authentication services.
15-Day Development Timeline
This timeline outlines the aggressive 15-day development plan, broken down into three core phases.
Phase 1: Core Systems (Days 1-5)
Frontend Foundation, Backend & Data Management, and Authentication & User Management.
Phase 2: Game Logic & Integration (Days 6-11)
Game Logic for all four games (Roulette, Dice, Plinko, Wheel), and Payout & Verification Logic.
Phase 3: Final Touches & Launch Prep (Days 12-15)
Leaderboard Rendering & Prize System, UI/UX Refinement, and Final Testing & Deployment.