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

Types

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

Functions

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