libtd-ktx / kotlinx.telegram.extensions / CommonKtx / sendPaymentForm
sendPaymentForm
open suspend fun
ShippingOption
.sendPaymentForm(chatId:
Long
, messageId:
Long
, orderInfoId:
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.
credentials
- The credentials chosen by user for payment.
Return TdApi.PaymentResult Contains the result of a payment request.