2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-30 22:05:28 +00:00

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
This commit is contained in:
MCSH
2017-11-18 22:47:51 +03:00
committed by GochoMugo
parent e03ffe5d04
commit 6263dcb007
2 changed files with 2 additions and 1 deletions

View File

@@ -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:

View File

@@ -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