Skip to main content
Module

x/grammy/mod.ts>Api#answerWebAppQuery

The Telegram Bot Framework.
Extremely Popular
Go to Latest
method Api.prototype.answerWebAppQuery
import { Api } from "https://deno.land/x/grammy@v1.11.1/mod.ts";

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

web_app_query_id: string

Unique identifier for the query to be answered

result: InlineQueryResult

An object describing the message to be sent

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#answerinlinequery