Skip to content

Commit

Permalink
examples: Fix game to answer callback query correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
MCSH authored and BenAgencyCom committed Nov 18, 2017
1 parent b625077 commit 01a644f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion examples/game/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01a644f

Please sign in to comment.