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_setBotPrecheckoutResults_

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

Once the user has confirmed their payment and shipping details, the bot receives an updateBotPrecheckoutQuery update.
Use this method to respond to such pre-checkout queries.
Note*: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.

Constructors

new
messages_setBotPrecheckoutResults_(params: { success?: true; query_id: bigint; error?: string; })

Properties

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

Required if the success isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user.

query_id: bigint

Unique identifier for the query to be answered

optional
success: true

Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the error field, instead

Static Properties

__F: (params: { success?: true; query_id: bigint; error?: string; }) => boolean
readonly
[name]: string
readonly
[paramDesc]: ParamDesc