public static class TdApi.ChatRevenueAmount extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
long |
availableAmount
Amount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency.
|
long |
balanceAmount
Amount of the cryptocurrency that isn't withdrawn yet, in the smallest units of the cryptocurrency.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
cryptocurrency
Cryptocurrency in which revenue is calculated.
|
long |
totalAmount
Total amount of the cryptocurrency earned, in the smallest units of the cryptocurrency.
|
boolean |
withdrawalEnabled
True, if Telegram Stars can be withdrawn now or later.
|
| Constructor and Description |
|---|
ChatRevenueAmount()
Contains information about revenue earned from sponsored messages in a chat.
|
ChatRevenueAmount(java.lang.String cryptocurrency,
long totalAmount,
long balanceAmount,
long availableAmount,
boolean withdrawalEnabled)
Contains information about revenue earned from sponsored messages in a chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String cryptocurrency
public long totalAmount
public long balanceAmount
public long availableAmount
public boolean withdrawalEnabled
public static final int CONSTRUCTOR
public ChatRevenueAmount()
public ChatRevenueAmount(java.lang.String cryptocurrency,
long totalAmount,
long balanceAmount,
long availableAmount,
boolean withdrawalEnabled)
cryptocurrency - Cryptocurrency in which revenue is calculated.totalAmount - Total amount of the cryptocurrency earned, in the smallest units of the cryptocurrency.balanceAmount - Amount of the cryptocurrency that isn't withdrawn yet, in the smallest units of the cryptocurrency.availableAmount - Amount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency.withdrawalEnabled - True, if Telegram Stars can be withdrawn now or later.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object