Node-telegram-bot-api: switch_pm_parameter and switch_pm_text methods are missing!!

Created on 10 Aug 2017  路  3Comments  路  Source: yagop/node-telegram-bot-api

I've tried to use these two methods in my code but they didn't work
then I've searched the whole library but I did not find anything related to these methods
can you help me please ?
this is the link of the telegram API which contain these methods

question

Most helpful comment

hi,

as you can see here, the answerInlineQuery method takes a third parameter, an object containing extra parameters for that method.

both switch_pm_parameter and switch_pm_text are parameters (not methods) that must be sent alongside results to the answerInlineQuery method.

example code:

bot.answerInlineQuery(query_id, results, {switch_pm_text:'test',switch_pm_parameter:'x'});

All 3 comments

hi,

as you can see here, the answerInlineQuery method takes a third parameter, an object containing extra parameters for that method.

both switch_pm_parameter and switch_pm_text are parameters (not methods) that must be sent alongside results to the answerInlineQuery method.

example code:

bot.answerInlineQuery(query_id, results, {switch_pm_text:'test',switch_pm_parameter:'x'});

thank you very much @zumoshi

Thanks @zumoshi for helping out. :+1:

ANS: https://github.com/yagop/node-telegram-bot-api/issues/398#issuecomment-321573519

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Lemmmy picture Lemmmy  路  3Comments

alikhil picture alikhil  路  3Comments

Dohoon-Kim picture Dohoon-Kim  路  3Comments

dimawebmaker picture dimawebmaker  路  3Comments

jacopocappelli1989 picture jacopocappelli1989  路  4Comments