public static class TdApi.StarRevenueStatus extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
TdApi.StarAmount |
availableAmount
The amount of Telegram Stars that are available for withdrawal.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.StarAmount |
currentAmount
The amount of Telegram Stars that aren't withdrawn yet.
|
int |
nextWithdrawalIn
Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.
|
TdApi.StarAmount |
totalAmount
Total amount of Telegram Stars earned.
|
boolean |
withdrawalEnabled
True, if Telegram Stars can be withdrawn now or later.
|
| Constructor and Description |
|---|
StarRevenueStatus()
Contains information about Telegram Stars earned by a bot or a chat.
|
StarRevenueStatus(TdApi.StarAmount totalAmount,
TdApi.StarAmount currentAmount,
TdApi.StarAmount availableAmount,
boolean withdrawalEnabled,
int nextWithdrawalIn)
Contains information about Telegram Stars earned by a bot or a chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.StarAmount totalAmount
public TdApi.StarAmount currentAmount
public TdApi.StarAmount availableAmount
public boolean withdrawalEnabled
public int nextWithdrawalIn
public static final int CONSTRUCTOR
public StarRevenueStatus()
public StarRevenueStatus(TdApi.StarAmount totalAmount, TdApi.StarAmount currentAmount, TdApi.StarAmount availableAmount, boolean withdrawalEnabled, int nextWithdrawalIn)
totalAmount - Total amount of Telegram Stars earned.currentAmount - The amount of Telegram Stars that aren't withdrawn yet.availableAmount - The amount of Telegram Stars that are available for withdrawal.withdrawalEnabled - True, if Telegram Stars can be withdrawn now or later.nextWithdrawalIn - Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object