Skip to content

Commit 01a644f

Browse files
MCSHharoldcristopher
authored and
haroldcristopher
committed
examples: Fix game to answer callback query correctly
References: * BR: yagop/node-telegram-bot-api#418 * PR: yagop/node-telegram-bot-api#449
1 parent b625077 commit 01a644f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Added:
1111
friends e.g. `text`, `audio`, etc.) (#409) (by @jlsjonas, @GochoMugo)
1212
1. Add support for Node.js v9 (by @GochoMugo)
1313
1. Document *TelegramBot.errors*, *TelegramBot.messageTypes* (by @GochoMugo)
14+
1. Fix game example (by @MCSH)
1415

1516
Changed:
1617

examples/game/game.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bot.onText(/\/start/, function onPhotoText(msg) {
3939

4040
// Handle callback queries
4141
bot.on('callback_query', function onCallbackQuery(callbackQuery) {
42-
bot.answerCallbackQuery(callbackQuery.id, url, true, { url });
42+
bot.answerCallbackQuery(callbackQuery.id, { url });
4343
});
4444

4545
// Render the HTML game

0 commit comments

Comments
 (0)