Send Invoice Request
data class SendInvoiceRequest(chat_id: String, title: String, description: String, payload: String, provider_token: String, currency: String, prices: List<LabeledPrice>, max_tip_amount: Long?, suggested_tip_amounts: List<Long>?, start_parameter: String?, 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?, disable_notification: Boolean?, reply_to_message_id: Long?, allow_sending_without_reply: Boolean?, reply_markup: InlineKeyboardMarkup?) : TelegramRequest
Content copied to clipboard
Use this method to send invoices. On success, the sent Message is returned.
Constructors
SendInvoiceRequest
Link copied to clipboard
fun SendInvoiceRequest(chat_id: String, 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, start_parameter: String? = 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, disable_notification: Boolean? = null, reply_to_message_id: Long? = null, allow_sending_without_reply: Boolean? = null, reply_markup: InlineKeyboardMarkup? = null)
Content copied to clipboard
Properties
allow_sending_without_reply
Link copied to clipboard
currency
Link copied to clipboard
Three-letter ISO 4217 currency code, see more on currencies
description
Link copied to clipboard
disable_notification
Link copied to clipboard
Sends the message
is_flexible
Link copied to clipboard
max_tip_amount
Link copied to clipboard
need_email
Link copied to clipboard
need_phone_number
Link copied to clipboard
need_shipping_address
Link copied to clipboard
photo_height
Link copied to clipboard
photo_size
Link copied to clipboard
photo_width
Link copied to clipboard
prices
Link copied to clipboard
provider_data
Link copied to clipboard
provider_token
Link copied to clipboard
Payments provider token, obtained via
reply_markup
Link copied to clipboard
A JSON-serialized object for an
reply_to_message_id
Link copied to clipboard
send_email_to_provider
Link copied to clipboard
send_phone_number_to_provider
Link copied to clipboard
start_parameter
Link copied to clipboard
suggested_tip_amounts
Link copied to clipboard