Raw.UpdateBotPrecheckoutQuery

Raw.UpdateBotPrecheckoutQuery

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

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;
export namespace Raw {
  export class UpdateBotPrecheckoutQuery {
    constructor(params: {
      queryId: bigint;
      userId: bigint;
      payload: Buffer;
      info?: Raw.TypePaymentRequestedInfo;
      shippingOptionId?: string;
      currency: string;
      totalAmount: bigint;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0x8caa9a96

Property

  • queryId : bigint

    Unique query identifier

  • userId : bigint

    User who sent the query

  • payload : Buffer

    Bot specified invoice payload

  • info : Raw.TypePaymentRequestedInfo or undefined

    Order info provided by the user

  • shippingOptionId : string or undefined

    Identifier of the shipping option chosen by the user

  • currency : string

    Three-letter iso 4217 currency code, or xtr for telegram stars.

  • totalAmount : bigint

    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).