Class Invoice
This object contains basic information about an invoice.
Inheritance
System.Object
Invoice
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types.Payment
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class Invoice
Properties
| Improve this Doc View SourceCurrency
Three-letter ISO 4217 currency code
Declaration
[JsonProperty(PropertyName = "currency", Required = Required.Always)]
public string Currency { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Description
Product description
Declaration
[JsonProperty(PropertyName = "description", Required = Required.Always)]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StartParameter
Unique bot deep-linking parameter that can be used to generate this invoice
Declaration
[JsonProperty(PropertyName = "start_parameter", Required = Required.Always)]
public string StartParameter { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Title
Product name
Declaration
[JsonProperty(PropertyName = "title", Required = Required.Always)]
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TotalAmount
Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
Declaration
[JsonProperty(PropertyName = "total_amount", Required = Required.Always)]
public int TotalAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |