Introduction
Last updated
Last updated
Contact us
TelegramΒ©οΈMiniTon 2023
π Game developers obtain a developer key (Secret Key) from MiniTon for data consistency verification, ensuring data security.
Click here to apply for Secret Key
πΊ Game Constraints:
New player tutorial should be displayed
Each game needs to set a countdown timer, which used to finalize the game
If a player quit before the countdown timer ends, the score should be reported
π¬First the game developer need includes the two JS file[telegram-web-app.js
& miniton_2.0.js
], calls the init
function through the SDK to obtain game-related information.
The main page will be displayed at the top layer of the game interface. While the game is loading its resources
It should simultaneously update the progress bar on the main page.
Loading bar progress by calling the setProgressValue
function via the SDK.
π Upon entering the game screen
Call start_game
via backend API in order to tell MiniTon the player had started a game.
πΉοΈ When the game begins
Call start_match
via a backend API call
π± While the game is in progress
(optionally) Can report "Match Score (score
)" multiple times through API
π At the end of the game
Call "Match Result (end_match
)" via a backend API call
π After the game ends
Call the SDKβs setGameOver
function
Report βGame End (end_game
)β information to MiniTon via backend API call