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

x/grammy_conversations/deps.deno.ts>Api#answerWebAppQuery

Conversational interfaces for grammY.
Latest
method Api.prototype.answerWebAppQuery
import { Api } from "https://deno.land/x/grammy_conversations@v1.2.0/deps.deno.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