SendInvoice

data class SendInvoice(chatId: ChatId, title: String, description: String, payload: String, providerToken: String, startParameter: StartParameter, currency: Currency, prices: List<LabeledPrice>, providerData: String?, requireName: Boolean, requirePhoneNumber: Boolean, requireEmail: Boolean, requireShippingAddress: Boolean, shouldSendPhoneNumberToProvider: Boolean, shouldSendEmailToProvider: Boolean, priceDependOnShipAddress: Boolean, disableNotification: Boolean, replyToMessageId: MessageIdentifier?, allowSendingWithoutReply: Boolean?, replyMarkup: InlineKeyboardMarkup?) : Currencied, Priced, 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, startParameter: StartParameter, currency: Currency, prices: List<LabeledPrice>, 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)
  • JSON-ENCODED FIELD

Functions

method
Link copied to clipboard
common
open override fun method(): String
setPhoto
Link copied to clipboard
common
fun setPhoto(photoUrl: String, photoSize: Long? = null, photoWidth: Int? = null, photoHeight: Int? = null)
unsetPhoto
Link copied to clipboard
common
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
val description: String
disableNotification
Link copied to clipboard
common
open override val disableNotification: Boolean = false
payload
Link copied to clipboard
common
val payload: String
photoHeight
Link copied to clipboard
common
var photoHeight: Int? = null
photoSize
Link copied to clipboard
common
var photoSize: Long? = null
photoUrl
Link copied to clipboard
common
var photoUrl: String? = null
photoWidth
Link copied to clipboard
common
var photoWidth: Int? = null
priceDependOnShipAddress
Link copied to clipboard
common
val priceDependOnShipAddress: Boolean = false
prices
Link copied to clipboard
common
open override val prices: List<LabeledPrice>
providerData
Link copied to clipboard
common
val providerData: String? = null
  • JSON-ENCODED FIELD

providerToken
Link copied to clipboard
common
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
val requireEmail: Boolean = false
requireName
Link copied to clipboard
common
val requireName: Boolean = false
requirePhoneNumber
Link copied to clipboard
common
val requirePhoneNumber: Boolean = false
requireShippingAddress
Link copied to clipboard
common
val requireShippingAddress: Boolean = false
resultDeserializer
Link copied to clipboard
common
open override val resultDeserializer: DeserializationStrategy<ContentMessage<InvoiceContent>>
shouldSendEmailToProvider
Link copied to clipboard
common
val shouldSendEmailToProvider: Boolean = false
shouldSendPhoneNumberToProvider
Link copied to clipboard
common
val shouldSendPhoneNumberToProvider: Boolean = false
startParameter
Link copied to clipboard
common
val startParameter: StartParameter
title
Link copied to clipboard
common
val title: String