Link Search Menu Expand Document

Constructor: updateBotPrecheckoutQuery

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
query_idlongYesUnique query identifier
user_idlongYesUser who sent the query
payloadbytesYesBot specified invoice payload
infoPaymentRequestedInfoOptionalOrder info provided by the user
shipping_option_idstringOptionalIdentifier of the shipping option chosen by the user
currencystringYesThree-letter ISO 4217 currency code
total_amountlongYesTotal 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).

Type: Update

Example:

$updateBotPrecheckoutQuery = ['_' => 'updateBotPrecheckoutQuery', 'query_id' => long, 'user_id' => long, 'payload' => 'bytes', 'info' => PaymentRequestedInfo, 'shipping_option_id' => 'string', 'currency' => 'string', 'total_amount' => long];