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

x/grammy/mod.ts>Context#answerShippingQuery

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