Package dev.inmo.tgbotapi.extensions.api.send.payments

Functions

replyWithInvoice
Link copied to clipboard
common
inline suspend fun RequestsExecutor.replyWithInvoice(to: Message, title: String, description: String, payload: String, providerToken: String, startParameter: String, currency: String, prices: List<LabeledPrice>, providerData: String?, requireName: Boolean, requirePhoneNumber: Boolean, requireEmail: Boolean, requireShippingAddress: Boolean, shouldSendPhoneNumberToProvider: Boolean, shouldSendEmailToProvider: Boolean, priceDependOnShipAddress: Boolean, disableNotification: Boolean, allowSendingWithoutReply: Boolean?, replyMarkup: InlineKeyboardMarkup?): ContentMessage<InvoiceContent>
sendInvoice
Link copied to clipboard
common
suspend fun RequestsExecutor.sendInvoice(chatId: ChatId, title: String, description: String, payload: String, providerToken: String, startParameter: String, currency: String, prices: List<LabeledPrice>, providerData: String?, requireName: Boolean, requirePhoneNumber: Boolean, requireEmail: Boolean, requireShippingAddress: Boolean, shouldSendPhoneNumberToProvider: Boolean, shouldSendEmailToProvider: Boolean, priceDependOnShipAddress: Boolean, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: InlineKeyboardMarkup?): ContentMessage<InvoiceContent>
suspend fun RequestsExecutor.sendInvoice(user: CommonUser, title: String, description: String, payload: String, providerToken: String, startParameter: String, currency: String, prices: List<LabeledPrice>, providerData: String?, requireName: Boolean, requirePhoneNumber: Boolean, requireEmail: Boolean, requireShippingAddress: Boolean, shouldSendPhoneNumberToProvider: Boolean, shouldSendEmailToProvider: Boolean, priceDependOnShipAddress: Boolean, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: InlineKeyboardMarkup?): ContentMessage<InvoiceContent>