Module

x/grammy/mod.ts>Api#answerWebAppQuery

The Telegram Bot Framework.
Very Popular
Go to Latest
method Api.prototype.answerWebAppQuery
import { Api } from "https://dotland.deno.dev/x/grammy@v1.17.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

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#answerwebappquery