Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
Telegram Bot: Game Did not start

I am trying to run my game inside telegram in-app browser.

Below are my code so far


bot.action('wheeloffortune', ctx => {
    bot.telegram.sendGame(ctx.chat.id, 'wheeloffortune');
})


bot.on("callback_query", function (query) {
    let gameurl = "https://dazzling-ritchie-f3ad20.netlify.app/?id="+query.id;
    bot.answerCallbackQuery({
        callback_query_id: query.id,
        url: gameurl
    });
});

bot.on("inline_query", function(iq) {
    bot.answerInlineQuery(iq.id, [ { type: "game", id: "0", game_short_name: 'wheeloffortune' } ] ); 
});

What I expect: after clicking the button 'Play wheeloffortune', the game should open in webview.

What is actually happening:

this image keep rendering

enter image description here

any advice is appreciated

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

According to the game example of telegraf:

You can simply use:

bot.gameQuery((ctx) => {
    let queryId = ctx.callbackQuery.id
    let gameurl = "https://dazzling-ritchie-f3ad20.netlify.app/?id="+queryId;
    ctx.answerGameQuery(gameUrl)
})
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!