answerWebAppQuery method
Future<SentWebAppMessage>
answerWebAppQuery(
- String webAppQueryId,
- InlineQueryResult? result
inherited
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.
Implementation
Future<SentWebAppMessage> answerWebAppQuery(
String webAppQueryId,
InlineQueryResult? result,
) {
return _client.apiCall(_token, 'answerWebAppQuery', {
'web_app_query_id': webAppQueryId,
'result': result,
});
}