Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/grammy_hydrate/data/shipping-query.ts>ShippingQueryXFragment

Hydration plugin for API calls and context objects.
Latest
interface ShippingQueryXFragment
import { type ShippingQueryXFragment } from "https://deno.land/x/grammy_hydrate@v1.4.1/data/shipping-query.ts";

Methods

answer(
ok: boolean,
other?: Other<"answerShippingQuery", "shipping_query_id" | "ok">,
signal?: AbortSignal,
): Ret<"answerShippingQuery">

Shipping query-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.