examples: Fix game to answer callback query correctly

References:

  * BR: https://github.com/yagop/node-telegram-bot-api/issues/418
  * PR: https://github.com/yagop/node-telegram-bot-api/pull/449
release
MCSH 8 years ago committed by GochoMugo
parent e03ffe5d04
commit 6263dcb007
No known key found for this signature in database
GPG Key ID: 7B6A01CB57AA39E4
  1. 1
      CHANGELOG.md
  2. 2
      examples/game/game.js

@ -11,6 +11,7 @@ Added:
friends e.g. `text`, `audio`, etc.) (#409) (by @jlsjonas, @GochoMugo)
1. Add support for Node.js v9 (by @GochoMugo)
1. Document *TelegramBot.errors*, *TelegramBot.messageTypes* (by @GochoMugo)
1. Fix game example (by @MCSH)
Changed:

@ -39,7 +39,7 @@ bot.onText(/\/start/, function onPhotoText(msg) {
// Handle callback queries
bot.on('callback_query', function onCallbackQuery(callbackQuery) {
bot.answerCallbackQuery(callbackQuery.id, url, true, { url });
bot.answerCallbackQuery(callbackQuery.id, { url });
});
// Render the HTML game

Loading…
Cancel
Save