I create game with BotFather and send this game with "sendGame" function to user, but i not understand how launch game when user press start button?
From API:
When this button is pressed, your bot gets a CallbackQuery with the game_short_name of the requested game.
My bot gets this CallbackQuery, but what next step?
I try send message with my game url (http://192.168.1.10/game.html - this game i can launch on pc or phone browser, work fine), but this not work inside telegram...
Can somebody help?
Thanks!
How launch game when user press "start game" button on telegram bot?
2k Views Asked by yura At
2
When the button is pressed the "callback_query" is invoked.
Using nodejs api I'm sending the link to the game in this way: