Raw.UpdateBotPrecheckoutQuery
This object contains information about an incoming pre-checkout query.
updateBotPrecheckoutQuery#8caa9a96 flags:# query_id:long user_id:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update;
export namespace Raw {
export class UpdateBotPrecheckoutQuery {
constructor(params: {
queryId: bigint;
userId: bigint;
payload: Buffer;
info?: Raw.TypePaymentRequestedInfo;
shippingOptionId?: string;
currency: string;
totalAmount: bigint;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x8caa9a96
Property
queryId
: bigintUnique query identifier
userId
: bigintUser who sent the query
payload
: BufferBot specified invoice payload
info
: Raw.TypePaymentRequestedInfo or undefinedOrder info provided by the user
shippingOptionId
: string or undefinedIdentifier of the shipping option chosen by the user
currency
: stringThree-letter iso 4217 currency code, or xtr for telegram stars.
totalAmount
: bigintTotal 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).