Introduction
Overview
π¬First the game developer need includes the two JS file[
telegram-web-app.js
&miniton_2.0.js
], calls theinit
function through the SDK to obtain game-related information.
π 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
functionReport βGame End (
end_game
)β information to MiniTon via backend API call
Last updated
Was this helpful?