Package dev.inmo.tgbotapi.requests.answers.payments

Types

Link copied to clipboard
data class AnswerPreCheckoutQueryError(val preCheckoutQueryId: PreCheckoutQueryId, val errorMessage: String) : AnswerPreCheckoutQuery
Link copied to clipboard
data class AnswerPreCheckoutQueryOk(val preCheckoutQueryId: PreCheckoutQueryId) : AnswerPreCheckoutQuery
Link copied to clipboard
data class AnswerShippingQueryError(val shippingQueryId: ShippingQueryIdentifier, val error: String) : AnswerShippingQuery
Link copied to clipboard
data class AnswerShippingQueryOk(val shippingQueryId: ShippingQueryIdentifier, val shippingOptions: List<ShippingOption>) : AnswerShippingQuery
Link copied to clipboard
object ShippingOptionsSerializer : KSerializer<List<ShippingOption>>

Functions

Link copied to clipboard
fun ShippingQuery.createAnswerError(error: String): AnswerShippingQueryError
Link copied to clipboard
fun PreCheckoutQuery.createAnswerOk(): AnswerPreCheckoutQueryOk
fun ShippingQuery.createAnswerOk(shippingOptions: List<ShippingOption>): AnswerShippingQueryOk