UpdateBotPrecheckoutQuery
- class pyrogram.raw.types.UpdateBotPrecheckoutQuery
This object contains information about an incoming pre-checkout query.
Constructor of
Update.- Details:
Layer:
223ID:
8CAA9A96
- Parameters:
query_id (
int64-bit) – Unique query identifieruser_id (
int64-bit) – User who sent the querypayload (
bytes) – Bot specified invoice payloadcurrency (
str) – Three-letter ISO 4217 currency code, or XTR for Telegram Stars.total_amount (
int64-bit) – 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).info (
PaymentRequestedInfo, optional) – Order info provided by the usershipping_option_id (
str, optional) – Identifier of the shipping option chosen by the user
TL Schema
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
Parameter Tree
longlongbytesPaymentRequestedInfo (optional)PaymentRequestedInfostring (optional)string (optional)string (optional)PostAddress (optional)PostAddressstringstringstringstringstringstringstring (optional)stringlongExample
UpdateBotPrecheckoutQuery(
query_id=0,
user_id=0,
payload=b"data",
currency="text",
total_amount=0,
)