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?
