AnswerPreCheckoutQueryRequest

data class AnswerPreCheckoutQueryRequest(preCheckoutQueryId: String, ok: Boolean, errorMessage: String?)

Request body for answerPreCheckoutQuery

Parameters

preCheckoutQueryId

Unique identifier for the query to be answered

ok

Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems.

errorMessage

Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user.

Constructors

AnswerPreCheckoutQueryRequest
Link copied to clipboard
common
fun AnswerPreCheckoutQueryRequest(preCheckoutQueryId: String, ok: Boolean, errorMessage: String? = null)
Unique identifier for the query to be answered

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): Boolean
component3
Link copied to clipboard
common
operator fun component3(): String?
copy
Link copied to clipboard
common
fun copy(preCheckoutQueryId: String, ok: Boolean, errorMessage: String? = null): AnswerPreCheckoutQueryRequest
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

errorMessage
Link copied to clipboard
common
val errorMessage: String? = null
Required if ok is False.
ok
Link copied to clipboard
common
val ok: Boolean
Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order.
preCheckoutQueryId
Link copied to clipboard
common
val preCheckoutQueryId: String
Unique identifier for the query to be answered