SendInvoice

data class SendInvoice(chatId: ChatId, title: String, description: String, payload: String, providerToken: String, currency: Currency, prices: List<LabeledPrice>, maxTipAmount: Int?, suggestedTipAmounts: List<Int>?, startParameter: StartParameter?, providerData: String?, requireName: Boolean, requirePhoneNumber: Boolean, requireEmail: Boolean, requireShippingAddress: Boolean, shouldSendPhoneNumberToProvider: Boolean, shouldSendEmailToProvider: Boolean, priceDependOnShipAddress: Boolean, disableNotification: Boolean, protectContent: Boolean, replyToMessageId: MessageIdentifier?, allowSendingWithoutReply: Boolean?, replyMarkup: InlineKeyboardMarkup?) : CommonSendInvoiceData, ChatRequest, DisableNotification, ReplyMessageId, ReplyMarkup, SendMessageRequest<ContentMessage<InvoiceContent>>

Parameters

providerData
  • JSON-ENCODED FIELD

Constructors

Link copied to clipboard
fun SendInvoice(chatId: ChatId, title: String, description: String, payload: String, providerToken: String, currency: Currency, prices: List<LabeledPrice>, maxTipAmount: Int? = null, suggestedTipAmounts: List<Int>? = null, startParameter: StartParameter? = null, providerData: String? = null, requireName: Boolean = false, requirePhoneNumber: Boolean = false, requireEmail: Boolean = false, requireShippingAddress: Boolean = false, shouldSendPhoneNumberToProvider: Boolean = false, shouldSendEmailToProvider: Boolean = false, priceDependOnShipAddress: Boolean = false, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null)

Functions

Link copied to clipboard
open override fun method(): String
Link copied to clipboard
open override fun setPhoto(photoUrl: String, photoSize: Long?, photoWidth: Int?, photoHeight: Int?)
Link copied to clipboard
open override fun unsetPhoto()

Properties

Link copied to clipboard
open override val allowSendingWithoutReply: Boolean? = null
Link copied to clipboard
open override val chatId: ChatId
Link copied to clipboard
open override val currency: Currency
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val disableNotification: Boolean = false
Link copied to clipboard
open override val maxTipAmount: Int? = null
Link copied to clipboard
open override val payload: String
Link copied to clipboard
open override var photoHeight: Int? = null
Link copied to clipboard
open override var photoSize: Long? = null
Link copied to clipboard
open override var photoUrl: String? = null
Link copied to clipboard
open override var photoWidth: Int? = null
Link copied to clipboard
open override val priceDependOnShipAddress: Boolean = false
Link copied to clipboard
open override val prices: List<LabeledPrice>
Link copied to clipboard
open override val protectContent: Boolean = false
Link copied to clipboard
open override val providerData: String? = null
Link copied to clipboard
open override val providerToken: String
Link copied to clipboard
open override val replyMarkup: InlineKeyboardMarkup? = null
Link copied to clipboard
open override val replyToMessageId: MessageIdentifier? = null
Link copied to clipboard
open override val requestSerializer: SerializationStrategy<*>
Link copied to clipboard
open override val requireEmail: Boolean = false
Link copied to clipboard
open override val requireName: Boolean = false
Link copied to clipboard
open override val requirePhoneNumber: Boolean = false
Link copied to clipboard
open override val requireShippingAddress: Boolean = false
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<ContentMessage<InvoiceContent>>
Link copied to clipboard
open override val shouldSendEmailToProvider: Boolean = false
Link copied to clipboard
open override val shouldSendPhoneNumberToProvider: Boolean = false
Link copied to clipboard
val startParameter: StartParameter? = null
Link copied to clipboard
open override val suggestedTipAmounts: List<Int>? = null
Link copied to clipboard
open override val title: String