InputInvoiceMessageContent

data class InputInvoiceMessageContent(title: String, description: String, payload: String, provider_token: String, currency: String, prices: List<LabeledPrice>, max_tip_amount: Long?, suggested_tip_amounts: List<Long>?, provider_data: String?, photo_url: String?, photo_size: Long?, photo_width: Long?, photo_height: Long?, need_name: Boolean?, need_phone_number: Boolean?, need_email: Boolean?, need_shipping_address: Boolean?, send_phone_number_to_provider: Boolean?, send_email_to_provider: Boolean?, is_flexible: Boolean?) : TelegramModel

Represents the content of an invoice message to be sent as the result of an inline query.

Constructors

InputInvoiceMessageContent
Link copied to clipboard
fun InputInvoiceMessageContent(title: String, description: String, payload: String, provider_token: String, currency: String, prices: List<LabeledPrice>, max_tip_amount: Long? = null, suggested_tip_amounts: List<Long>? = null, provider_data: String? = null, photo_url: String? = null, photo_size: Long? = null, photo_width: Long? = null, photo_height: Long? = null, need_name: Boolean? = null, need_phone_number: Boolean? = null, need_email: Boolean? = null, need_shipping_address: Boolean? = null, send_phone_number_to_provider: Boolean? = null, send_email_to_provider: Boolean? = null, is_flexible: Boolean? = null)

Properties

currency
Link copied to clipboard
val currency: String
Three-letter ISO 4217 currency code, see more on currencies
description
Link copied to clipboard
val description: String
Product description, 1-255 characters
is_flexible
Link copied to clipboard
val is_flexible: Boolean? = null
Optional.
max_tip_amount
Link copied to clipboard
val max_tip_amount: Long? = null
Optional.
need_email
Link copied to clipboard
val need_email: Boolean? = null
Optional.
need_name
Link copied to clipboard
val need_name: Boolean? = null
Optional.
need_phone_number
Link copied to clipboard
val need_phone_number: Boolean? = null
Optional.
need_shipping_address
Link copied to clipboard
val need_shipping_address: Boolean? = null
Optional.
payload
Link copied to clipboard
val payload: String
Bot-defined invoice payload, 1-128 bytes.
photo_height
Link copied to clipboard
val photo_height: Long? = null
Optional.
photo_size
Link copied to clipboard
val photo_size: Long? = null
Optional.
photo_url
Link copied to clipboard
val photo_url: String? = null
Optional.
photo_width
Link copied to clipboard
val photo_width: Long? = null
Optional.
prices
Link copied to clipboard
val prices: List<LabeledPrice>
Price breakdown, a JSON-serialized list of components (e.g.
provider_data
Link copied to clipboard
val provider_data: String? = null
Optional.
provider_token
Link copied to clipboard
val provider_token: String
Payment provider token, obtained via
send_email_to_provider
Link copied to clipboard
val send_email_to_provider: Boolean? = null
Optional.
send_phone_number_to_provider
Link copied to clipboard
val send_phone_number_to_provider: Boolean? = null
Optional.
suggested_tip_amounts
Link copied to clipboard
val suggested_tip_amounts: List<Long>? = null
Optional.
title
Link copied to clipboard
val title: String
Product name, 1-32 characters