PreCheckoutQuery

data class PreCheckoutQuery(id: String, from: User, currency: String, total_amount: Long, invoice_payload: String, shipping_option_id: String?, order_info: OrderInfo?) : TelegramModel

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

Constructors

PreCheckoutQuery
Link copied to clipboard
fun PreCheckoutQuery(id: String, from: User, currency: String, total_amount: Long, invoice_payload: String, shipping_option_id: String? = null, order_info: OrderInfo? = null)
Creates a PreCheckoutQuery.

Properties

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