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

x/mtkruto/tl/3_functions.ts>messages_setBotShippingResults_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class messages_setBotShippingResults_
extends Function_<boolean>
import { messages_setBotShippingResults_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an updateBotShippingQuery update. Use this method to reply to shipping queries.

Constructors

new
messages_setBotShippingResults_(params: { query_id: bigint; error?: string; shipping_options?: Array<enums.ShippingOption>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
error: string

Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable"). Telegram will display this message to the user.

query_id: bigint

Unique identifier for the query to be answered

optional
shipping_options: Array<enums.ShippingOption>

A vector of available shipping options.

Static Properties

__F: (params: { query_id: bigint; error?: string; shipping_options?: Array<enums.ShippingOption>; }) => boolean
readonly
[name]: string
readonly
[paramDesc]: ParamDesc