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
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:
Most helpful comment
hi,
as you can see here, the
answerInlineQuerymethod takes a third parameter, an object containing extra parameters for that method.both
switch_pm_parameterandswitch_pm_textare parameters (not methods) that must be sent alongsideresultsto theanswerInlineQuerymethod.example code: