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

x/grammy/mod.ts>Api#answerShippingQuery

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