AnswerShippingQueryRequest

data class AnswerShippingQueryRequest(shipping_query_id: String, ok: Boolean, shipping_options: List<ShippingOption>?, error_message: String?) : TelegramRequest

If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned.

Constructors

AnswerShippingQueryRequest
Link copied to clipboard
fun AnswerShippingQueryRequest(shipping_query_id: String, ok: Boolean, shipping_options: List<ShippingOption>? = null, error_message: String? = null)

Properties

error_message
Link copied to clipboard
val error_message: String? = null
Required if ok is False.
ok
Link copied to clipboard
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)
shipping_options
Link copied to clipboard
val shipping_options: List<ShippingOption>? = null
Required if ok is True.
shipping_query_id
Link copied to clipboard
val shipping_query_id: String
Unique identifier for the query to be answered