Skip to main content

updateBotPrecheckoutQuery

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

type tg.UpdateBotPrecheckoutQuery struct { /* ... */ }

Implements Update.

Fields

NameTypeRequiredDescription
QueryIDint64yesUnique query identifier
UserIDint64yesUser who sent the query
Payload[]byteyesBot specified invoice payload
InfoPaymentRequestedInfoOrder info provided by the user
ShippingOptionIDstringIdentifier of the shipping option chosen by the user
CurrencystringyesThree-letter ISO 4217 currency code, or XTR for Telegram Stars.
TotalAmountint64yesTotal 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).

References