AnswerShippingQueryRequest

data class AnswerShippingQueryRequest(shippingQueryId: String, ok: Boolean, shippingOptions: List<ShippingOption>, errorMessage: String?)

Request body for answerShippingQuery

Parameters

shippingQueryId

Unique identifier for the query to be answered

ok

Specify True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)

shippingOptions

Required if ok is True. A JSON-serialized array of available shipping options.

errorMessage

Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user.

Constructors

AnswerShippingQueryRequest
Link copied to clipboard
common
fun AnswerShippingQueryRequest(shippingQueryId: String, ok: Boolean, shippingOptions: List<ShippingOption> = emptyList(), 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(): List<ShippingOption>
component4
Link copied to clipboard
common
operator fun component4(): String?
copy
Link copied to clipboard
common
fun copy(shippingQueryId: String, ok: Boolean, shippingOptions: List<ShippingOption> = emptyList(), errorMessage: String? = null): AnswerShippingQueryRequest
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 delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)
shippingOptions
Link copied to clipboard
common
val shippingOptions: List<ShippingOption>
Required if ok is True.
shippingQueryId
Link copied to clipboard
common
val shippingQueryId: String
Unique identifier for the query to be answered