Skip to main content
Module

x/grammy/core/api.ts>Api#answerShippingQuery

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