method ApiMethods.answerWebAppQuery
ApiMethods.answerWebAppQuery(args: { web_app_query_id: string; result: InlineQueryResult; }): SentWebAppMessage

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.

Parameters

args: { web_app_query_id: string; result: InlineQueryResult; }

Return Type

Usage

import { type ApiMethods } from "types";