Show / Hide Table of Contents

Class LabeledPrice

This object represents a portion of the price for goods or services.

Inheritance
System.Object
LabeledPrice
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 LabeledPrice

Properties

| Improve this Doc View Source

Amount

Price of the product 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 = "amount", Required = Required.Always)]
public int Amount { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Label

Portion label

Declaration
[JsonProperty(PropertyName = "label", Required = Required.Always)]
public string Label { get; set; }
Property Value
Type Description
System.String
  • Improve this Doc
  • View Source
Back to top Generated by DocFX