libtd-ktx / kotlinx.telegram.coroutines / validateOrderInfo
validateOrderInfo
suspend fun TelegramFlow.validateOrderInfo(chatId: Long, 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
chatId - Chat identifier of the Invoice message.
messageId - Message identifier.
orderInfo - The order information, provided by the user.
allowSave - True, if the order information can be saved.
Return ValidatedOrderInfo Contains a temporary identifier of validated order information, which is stored for one hour. Also contains the available shipping options.