UNPKG

@grammyjs/hydrate

Version:
18 lines (17 loc) 1.28 kB
import { type RawApi, type ShippingQuery } from "../deps.node.js"; import { type Other, type Ret } from "../plugin.js"; export interface ShippingQueryXFragment { /** * 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. * * @param 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) * @param other Optional remaining parameters, confer the official reference below * @param signal Optional `AbortSignal` to cancel the request * * **Official reference:** https://core.telegram.org/bots/api#answershippingquery */ answer(ok: boolean, other?: Other<"answerShippingQuery", "shipping_query_id" | "ok">, signal?: AbortSignal): Ret<"answerShippingQuery">; } export type ShippingQueryX = ShippingQueryXFragment & ShippingQuery; export declare function installShippingQueryMethods(api: RawApi, shippingQuery: ShippingQuery): void; import { AbortSignal } from "./../shim.node.js";