diff --git a/examples/keyboard.js b/examples/keyboard.js index cd1d854..deba207 100644 --- a/examples/keyboard.js +++ b/examples/keyboard.js @@ -56,7 +56,7 @@ bot.on('/inlineKeyboard', msg => { // Inline button callback bot.on('callbackQuery', msg => { // User message alert - return bot.answerCallbackQuery(msg.id, `Inline button callback: ${ msg.data }`, true); + return telegramBot.answerCallbackQuery(msg.id, {text: `Inline button callback: ${ msg.data }`}); }); // Inline query