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

x/mtkruto/tl/2_types.ts>UpdateBotPrecheckoutQuery_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class UpdateBotPrecheckoutQuery_
extends _Update_
import { UpdateBotPrecheckoutQuery_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

This object contains information about an incoming pre-checkout query.

Constructors

new
UpdateBotPrecheckoutQuery_(params: { query_id: bigint; user_id: bigint; payload: Uint8Array; info?: enums.PaymentRequestedInfo; shipping_option_id?: string; currency: string; total_amount: bigint; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
currency: string

Three-letter ISO 4217 currency code

optional
info: enums.PaymentRequestedInfo

Order info provided by the user

payload: Uint8Array

Bot specified invoice payload

query_id: bigint

Unique query identifier

optional
shipping_option_id: string

Identifier of the shipping option chosen by the user

total_amount: bigint

Total amount in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).

user_id: bigint

User who sent the query

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc