libtd-ktx / kotlinx.telegram.coroutines / sendPaymentForm
sendPaymentForm
suspend fun TelegramFlow.sendPaymentForm(chatId: Long, messageId: Long, orderInfoId: String?, shippingOptionId: String?, credentials: InputCredentials?): PaymentResult
Suspend function, which sends a filled-out payment form to the bot for final verification.
Parameters
chatId - Chat identifier of the Invoice message.
messageId - Message identifier.
orderInfoId - Identifier returned by ValidateOrderInfo, or an empty string.
shippingOptionId - Identifier of a chosen shipping option, if applicable.
credentials - The credentials chosen by user for payment.
Return PaymentResult Contains the result of a payment request.