Introduction
Overview
π¬First the game developer need includes the two JS file[
telegram-web-app.js&miniton_2.0.js], calls theinitfunction through the SDK to obtain game-related information.
π Upon entering the game screen
Call
start_gamevia backend API in order to tell MiniTon the player had started a game.
πΉοΈ When the game begins
Call
start_matchvia 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
setGameOverfunctionReport βGame End (
end_game)β information to MiniTon via backend API call
Last updated
Was this helpful?
