Context of a pre-checkout query update

This is a subclass of PreCheckoutQuery, so all its fields are also available.

Hierarchy (View Summary)

Implements

Constructors

Properties

_name: "pre_checkout_query" = ...
_peers: PeersIndex

Accessors

  • get currency(): string
  • Currency of the payment

    Returns string

  • get payload(): Uint8Array
  • Bot-defined payload of the original invoice (see InputMediaInvoice.payload)

    Returns Uint8Array

  • get paymentInfo(): null | RawPaymentRequestedInfo
  • User-provided payment info (like name, phone, shipping address, etc.)

    Returns null | RawPaymentRequestedInfo

  • get queryId(): Long
  • ID of the query

    Returns Long

  • get totalAmount(): Long
  • Total price of the payment

    Returns Long

  • get user(): User
  • User who sent the query

    Returns User

  • get userId(): number
  • ID of the user who sent the query

    Returns number

Methods

  • Approve the query

    Returns Promise<void>

  • Decline the query, optionally with an error

    Parameters

    • error: string = ''

    Returns Promise<void>