grammY: Respond to clicks / This request will never generate a response

Now

Documentation here https://grammy.dev/plugins/keyboard.html#responding-to-clicks

This does not work for me

bot.callbackQuery("click-payload", async (ctx) => {
  await ctx.answerCallbackQuery({
    text: "You were curious, indeed!",
  });
});

Cloudflare Workers gives 500 with the error “This request will never generate a response”

Is it a bug in the documentation?

This works for me

bot.callbackQuery("click-payload", async (ctx) => {
  await ctx.reply("You were curious, indeed!");
});

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 19 (11 by maintainers)

Most upvoted comments

Working on it, combining a repo that you can deploy and reproduce the issue.