version: 2.1.3


Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated. On success, a SentWebAppMessage object is returned.


web_app_query_id string Unique identifier for the query to be answered Yes
result InlineQueryResult A JSON-serialized object describing the message to be sent Yes
token String You can use this method on another bot with specify this parameter Optional
return_array Boolean Specify the result type , if pass true results will be array otherwise will be object Optional
forgot Boolean You can set to not receive request result, dont set it or pass null for turn it off Optional
answer Boolean You can set to answer to webhook, dont set it or pass null for turn it off Optional

Method errors

required parameters not found required parameter for this method is not founded. you can see them in log
answer mode not allowed you can use answer mode only once for each webhook update and you already did
answer mode not allowed bc multi you can't use answer mode when multi is on

Method examples

$this->answerWebAppQuery(['web_app_query_id' => string, 'result' => InlineQueryResult]);
$this->answerWebAppQuery(['web_app_query_id' => string, 'result' => InlineQueryResult]);

Method alices

Method output :