Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

236
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda