Invoice

data class Invoice(title: String, description: String, start_parameter: String, currency: String, total_amount: Long) : TelegramModel

This object contains basic information about an invoice.

Constructors

Invoice
Link copied to clipboard
fun Invoice(title: String, description: String, start_parameter: String, currency: String, total_amount: Long)
Creates a Invoice.

Properties

currency
Link copied to clipboard
val currency: String
Three-letter ISO 4217 currency code
description
Link copied to clipboard
val description: String
Product description
start_parameter
Link copied to clipboard
val start_parameter: String
Unique bot deep-linking parameter that can be used to generate this invoice
title
Link copied to clipboard
val title: String
Product name
total_amount
Link copied to clipboard
val total_amount: Long
Total price in the smallest units of the currency (integer, not float/double).