My bot have sent the game to the user , after that user click button Play “Name Game” then it dont happen anything
This is my code
const Telegram = window.Telegram;
Telegram.WebApp.ready()
const initData = Telegram.WebApp.initDataUnsafe
const chatId = initData?.user?.id
const gameUrl = "https://cdn.htmlgames.com/TheBrainTrain/"
if (chatId) {
var requestData = {
chat_id: chatId,
game_short_name: "thebraintrain",
url : gameUrl
};
telegramService.sendGame(requestData).then((res) => {
})
}
}
I try to search many time but still dont get the answer
New contributor
Tan Pham is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.