mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-30 13:58:27 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user