Data about the contains information about an incoming pre-checkout query
User who sent the query
Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars
Unique query identifier
Bot specified invoice payload
Optional
orderOrder information provided by the user
Optional
shippingIdentifier of the shipping option chosen by the user
Total price 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)
The client that instantiated this
Protected
_cloneProtected
_patchProtected
_updateOnce the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries.
Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems
Optional
errorMessage: stringRequired if ok is False. 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
On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.
Flatten an object. Any properties that are collections will get converted to an array of keys.
Optional
propsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Rest
...props: Record<string, string | boolean>[]Optional. Specific properties to include/exclude, or rename.
Flattened object.
The client that instantiated this