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?