We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
so i keep trying testing the Inline button callback but all is in vain i tyred the keyboard.js example and didn't work to
idk what i have to do to make it work! anyway, that is the cod that i used
// Inline buttons bot.on('/Method', msg => { let replyMarkup = bot.inlineKeyboard([ [ bot.inlineButton('callbackQuery', {callback: 'callbackQuery'}), bot.inlineButton('inline', {inline: 'some query'}) ], [ bot.inlineButton('url', {url: 'https://telegram.org'}) ] ]); return bot.sendMessage(msg.from.id, 'Inline keyboard example.', {replyMarkup}); }); // Inline button callback bot.on('callbackQuery', msg => { // User message alert return bot.answerCallbackQuery(msg.id, `Inline button callback: ${ msg.data }`, true); });
when i click on callback it just load for ever
The text was updated successfully, but these errors were encountered:
The answerCallbackQuery function has changed. Try:
answerCallbackQuery
return telegramBot.answerCallbackQuery(msg.id, {text: `Inline button callback: ${ msg.data }`});
instead
Sorry, something went wrong.
Doesn't work either... just does nothing.
No branches or pull requests
so i keep trying testing the Inline button callback but all is in vain
i tyred the keyboard.js example and didn't work to
idk what i have to do to make it work!
anyway, that is the cod that i used
when i click on callback it just load for ever
The text was updated successfully, but these errors were encountered: