method ApiMethods.answerShippingQuery
ApiMethods.answerShippingQuery(args: { shipping_query_id: string; ok: boolean; shipping_options?: readonly ShippingOption[]; error_message?: string; }): true

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

args: { shipping_query_id: string; ok: boolean; shipping_options?: readonly ShippingOption[]; error_message?: string; }

Return Type

true

Usage

import { type ApiMethods } from "types";