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

Types

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

Functions

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