Node-telegram-bot-api: bot.answerCallbackQuery has been deprecated, any other option?

Created on 27 Jul 2018  路  2Comments  路  Source: yagop/node-telegram-bot-api

After testing the answerCallbackQuery method with its associated buttons for long hours, I see in the console that it says the following:

node-telegram-bot-api deprecated The method signature answerCallbackQuery([options]) has been
deprecated since v0.29.0

There is some other method that handles or has the same functionality as answerCallbackQuery?
I also took a look at the documentation and I do not see anything about it

Thanks in advance

Most helpful comment

Very easy solution:
bot.answerCallbackQuery(message.id, {text: 'Your message'});

Deprecation message notify you that [options] param is deprecated, not all the function.

All 2 comments

Very easy solution:
bot.answerCallbackQuery(message.id, {text: 'Your message'});

Deprecation message notify you that [options] param is deprecated, not all the function.

I'll try it and I'll tell you, thank you very much :stuck_out_tongue_winking_eye:

Was this page helpful?
0 / 5 - 0 ratings