MessageKtx.validateOrderInfo - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.extensions / MessageKtx / validateOrderInfo

validateOrderInfo

open suspend fun Message.validateOrderInfo(chatId: Long, orderInfo: OrderInfo?, allowSave: Boolean): ValidatedOrderInfo

Suspend function, which validates the order information provided by a user and returns the available shipping options for a flexible invoice.

Parameters

chatId - Chat identifier of the Invoice message.

orderInfo - The order information, provided by the user.

allowSave - True, if the order information can be saved.

Return TdApi.ValidatedOrderInfo Contains a temporary identifier of validated order information, which is stored for one hour. Also contains the available shipping options.