Robin Good — building a game Telegram Mini App with Laravel 11
Case study · Laravel 11 · Telegram Mini App · game and financial logic
About the project
Robin Good is a game-based Telegram Mini App with an internal balance, referral programme and administration panel. I developed its backend using Laravel 11 and MySQL, with Docker providing the project environment.
The application brought together a Telegram-based interface, game mechanics, financial records and external APIs. My scope covered the backend, integrations and connecting the UI designer’s frontend to the server-side logic.
The task
Build a flow in which a user tops up an internal balance, chooses a game, purchases game shares and receives a result notification. The project team also needed tools to manage users, game rounds, balances and transactions.
Further requirements included a multi-level referral programme, incoming payment processing and the use of market prices in game result calculations.
Developing the game platform
I implemented server-side mechanics for three game variants known during development as:
- Robin;
- Pirate;
- Cake Factory.
My work covered bets, game share purchases, round closure and result calculation. I connected the supplied frontend to the backend and worked with the team on interface states: available shares, positions purchased by others, the user’s selection and operation history.
I also implemented Telegram result notifications containing the game name, draw time, winning selection, market price and reward amount. Frequent draws were used during testing to exercise user flows more quickly.
The Mini App interface
The supplied screenshots show a version featuring Robin Hood, Maid Marian and Little John. These screen labels differ from the game names used in the development discussions. A separate UI/UX specialist created the visual design.
The financial module and payment integrations
I developed the financial module with an internal balance, deposits through five wallets, incoming payment tracking and P2P deal matching. Administration tools provided access to balances, transactions and requests.
Wallet integration involved practical issues such as passing a user identifier in a transfer comment, handling payments without a comment and opening a wallet from the Mini App. I worked on matching those payments to users and the support workflow needed to resolve unidentified deposits.
Balance credits and reward transfers were refined during testing. This case describes the modules developed and integration work performed; it does not present the financial system as independently audited.
The referral programme
I implemented a referral system with up to seven levels and percentage-based reward distribution, including records of invited users and reward accruals.
I worked with the team on displaying the referral structure and operation history. One interface requirement was to expand the list of friends at a selected level so users could inspect their network.
Binance API integration
I worked with BTC/USDT prices, candlesticks and timestamps. A key challenge was agreeing when a price should be fixed and how the underlying value could be checked.
I investigated differences between API responses and charts, candle intervals and the effect of an unclosed candle on the result. I used Binance API data for price reconciliation and prepared an explanation of how to inspect the exchange data export.
Using a price in a game required a separate discussion from fetching it: an open candle changes over time, while a result known in advance affects participation conditions. The final algorithm and an independent security assessment are outside the verified material available for this case.
Additional integrations
- Telegram Bot API: commands, messages and notifications. The project also included a bot for collecting channel news, moderation and subsequent publication.
- TradingView: receiving and processing signals.
- DeepSeek API: analysis of wins and bets.
The administration panel
I developed administration tools for users, balances, transactions and requests. The team could also run game draws through the panel and review operations.
This complemented the user-facing Mini App with a separate workspace for staff handling game and financial data.
My role
Backend development and server-side architecture, game and financial logic, external APIs, administration tools, frontend integration and participation in testing. I worked with the client and UI/UX designer to turn agreed workflows into working functions and clarify integration constraints.
Technology stack
- PHP
- Laravel 11
- MySQL
- Docker
- Telegram Bot API
- Binance API
- TradingView
- DeepSeek API
Work delivered
I developed a Telegram Mini App backend combining three game variants, an internal balance, a referral programme, administration tools and external APIs. I implemented result notifications in Telegram and connected the supplied frontend to the backend.
The project demonstrates my experience developing Telegram Mini Apps with Laravel and complex game and financial workflows, from a user action in Telegram to a server-side calculation, an operation record and administrative handling.
Frequently asked questions
Can a Telegram Mini App be built with Laravel?
Yes. A Mini App is a web interface inside Telegram, while Laravel can provide its API, users, database and business logic. Telegram authentication data must be validated on the server; browser-supplied data should not be trusted without verification.
How is an internal balance implemented in a Telegram Mini App?
The server stores the balance and operation history. Monetary amounts need an exact representation, such as DECIMAL values or integer minor units. Concurrent changes require transactions, locking and duplicate-processing controls. The design depends on the currencies and operations involved.
Can a Telegram Mini App connect to payment services?
Yes, through provider APIs and server-side notifications. Payment confirmation should come from a validated provider event rather than a browser redirect to a success page. Repeated notifications must not cause a second credit.
How can a referral programme be added?
The backend records the inviter, the relationships between levels and the event that qualifies for a reward. The calculation must account for duplicate events, self-referrals, circular relationships and cancelled operations. Accrual rules should be agreed before implementation.
Can Binance API and other external services be integrated?
Yes. The backend retrieves and processes API data. For market prices, the source, instrument, timestamp, interval and fixing rule need to be defined. Rate limits and service unavailability also need to be handled.
Can a Telegram Mini App have an administration panel?
Yes. The panel can share the backend while using separate authentication, roles and permissions. Access checks belong on the server, and balance operations need an audit trail and protection against repeated actions.
Need a Telegram Mini App developed?
I build Telegram Mini App backends with PHP and Laravel: game and business logic, payments, API integrations and administration panels.




