libtd-ktx / kotlinx.telegram.extensions / ChatKtx / validateOrderInfo
validateOrderInfo
open suspend fun
Chat
.validateOrderInfo(messageId:
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
messageId
- Message identifier.
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.