Module

x/grammy/mod.ts>Context#answerShippingQuery

The Telegram Bot Framework.
Very Popular
Go to Latest
method Context.prototype.answerShippingQuery
import { Context } from "https://dotland.deno.dev/x/grammy@v1.16.2/mod.ts";

Context-aware alias for api.answerShippingQuery. If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned.

Parameters

ok: boolean

Unique identifier for the query to be answered

optional
other: Other<"answerShippingQuery", "shipping_query_id" | "ok">

Pass True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)

optional
signal: AbortSignal

Optional remaining parameters, confer the official reference below