Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy/mod.ts>Api#answerWebAppQuery

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