Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PreCheckoutQueryEvent

New incoming pre-checkout query. Contains full information about checkout.

guides

Check official reference.

eventcategory

'postback'

eventtype

'pre_checkout_query'

Hierarchy

  • EventObject<"postback", "pre_checkout_query">
  • EventBase
  • PreCheckoutQuery
    • PreCheckoutQueryEvent

Index

Properties

botId: number
category: "postback"
channel: TelegramChat

The chat channel

currency: string

Three-letter ISO 4217 currency code

invoicePayload?: string

Bot specified invoice payload

orderInfo?: any

Order info provided by the user

platform: "telegram"
preCheckoutQuery: any

Pre-checkout query object.

queryId: string

Unique query identifier

shippingOptionId?: string

Identifier of the shipping option chosen by the user

totalAmount: number

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

type: "pre_checkout_query"
updateId: string

The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.

User who sent the query

Generated using TypeDoc