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, replyToMessageId: MessageIdentifier?, allowSendingWithoutReply: Boolean?, replyMarkup: InlineKeyboardMarkup?) : CommonSendInvoiceData, ChatRequest, DisableNotification, ReplyMessageId, ReplyMarkup, SendMessageRequest<ContentMessage<InvoiceContent>>

Parameters

providerData
  • JSON-ENCODED FIELD

Constructors

SendInvoice
Link copied to clipboard
common
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, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: InlineKeyboardMarkup? = null)

Functions

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

Properties

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