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.
| Name | Type | Description | Required |
|---|---|---|---|
| web_app_query_id | string | array | Unique identifier for the query to be answered | yes |
| result | inlineQueryResult | stdClass | A JSON-serialized object describing the message to be sent | yes |
| token | string | null | You can use this method on another bot with specify this parameter | no |
| forgot | bool | null | You can set to not receive request result, dont set it or pass null for turn it off | no |
| answer | bool | null | You can set to answer to webhook, dont set it or pass null for turn it off | no |
Output : BPT\types\sentWebAppMessage | BPT\types\responseError | bool
Static or normal : Static
request::answerWebAppQuery(web_app_query_id: string, result: InlineQueryResult, token: String | null, forgot: Boolean | null, answer: Boolean | null);request::answerWebAppQuery(['web_app_query_id' => string, 'result' => InlineQueryResult, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);request::answerWebAppQuery(web_app_query_id: string, result: InlineQueryResult);request::answerWebAppQuery(['web_app_query_id' => string, 'result' => InlineQueryResult]);