Module

x/grammy/mod.ts>Api#answerShippingQuery

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

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

shipping_query_id: string

Unique identifier for the query to be answered

ok: boolean

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
other: Other<R, "answerShippingQuery", "shipping_query_id" | "ok">

Optional remaining parameters, confer the official reference below

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

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