class pyrogram.raw.types.UpdateBotPrecheckoutQuery

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

Constructor type of Update.

  • Layer: 126

  • ID: 0x5d2f3aa9

  • query_id (int 64-bit) – Unique query identifier.

  • user_id (int 32-bit) – User who sent the query.

  • payload (bytes) – Bot specified invoice payload.

  • currency (str) – Three-letter ISO 4217 currency code.

  • total_amount (int 64-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 user.

  • shipping_option_id (str, optional) – Identifier of the shipping option chosen by the user.