public class LabeledPrice extends java.lang.Object implements TelegramObject
| Constructor and Description |
|---|
LabeledPrice(java.lang.String label,
int amount)
Constructs a LabeledPrice.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getAmount()
Getter for property
amount. |
java.lang.String |
getLabel()
Getter for property
label. |
int |
hashCode() |
public LabeledPrice(java.lang.String label,
int amount)
label - the portion labelamount - 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 Currency.getExponent(), it shows the number of digits
past the decimal point for each currency (2 for the majority of currencies).