Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

240
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda