PreCheckoutQuery

data class PreCheckoutQuery(id: String, from: User, currency: String, totalAmount: Int, invoicePayload: String, shippingOptionId: String?, orderInfo: OrderInfo?)

This object contains information about an incoming pre-checkout query. Telegram Passport is a unified authorization method for services that require personal identification. Users can upload their documents once, then instantly share their data with services that require real-world ID (finance, ICOs, etc.). Please see the manual for details.

Parameters

id

Unique query identifier

from

User who sent the query

currency

Three-letter ISO 4217 currency code

totalAmount

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

invoicePayload

Bot specified invoice payload

shippingOptionId

Optional. Identifier of the shipping option chosen by the user

orderInfo

Optional. Order info provided by the user

Constructors

PreCheckoutQuery
Link copied to clipboard
common
fun PreCheckoutQuery(id: String, from: User, currency: String, totalAmount: Int, invoicePayload: String, shippingOptionId: String? = null, orderInfo: OrderInfo? = null)
Unique query identifier

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): User
component3
Link copied to clipboard
common
operator fun component3(): String
component4
Link copied to clipboard
common
operator fun component4(): Int
component5
Link copied to clipboard
common
operator fun component5(): String
component6
Link copied to clipboard
common
operator fun component6(): String?
component7
Link copied to clipboard
common
operator fun component7(): OrderInfo?
copy
Link copied to clipboard
common
fun copy(id: String, from: User, currency: String, totalAmount: Int, invoicePayload: String, shippingOptionId: String? = null, orderInfo: OrderInfo? = null): PreCheckoutQuery
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

currency
Link copied to clipboard
common
val currency: String
Three-letter ISO 4217 currency code
from
Link copied to clipboard
common
val from: User
User who sent the query
id
Link copied to clipboard
common
val id: String
Unique query identifier
invoicePayload
Link copied to clipboard
common
val invoicePayload: String
Bot specified invoice payload
orderInfo
Link copied to clipboard
common
val orderInfo: OrderInfo? = null
Optional.
shippingOptionId
Link copied to clipboard
common
val shippingOptionId: String? = null
Optional.
totalAmount
Link copied to clipboard
common
val totalAmount: Int
Total price in the smallest units of the currency (integer, not float/double).