Package org.drinkless.tdlib
Class TdApi.ChatRevenueAmount
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.ChatRevenueAmount
- Enclosing class:
- TdApi
Contains information about revenue earned from sponsored messages in a chat.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongAmount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency.longAmount of the cryptocurrency that isn't withdrawn yet, in the smallest units of the cryptocurrency.static final intIdentifier uniquely determining type of the object.Cryptocurrency in which revenue is calculated.longTotal amount of the cryptocurrency earned, in the smallest units of the cryptocurrency.booleanTrue, if Telegram Stars can be withdrawn now or later. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about revenue earned from sponsored messages in a chat.ChatRevenueAmount(String cryptocurrency, long totalAmount, long balanceAmount, long availableAmount, boolean withdrawalEnabled) Contains information about revenue earned from sponsored messages in a chat. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
cryptocurrency
Cryptocurrency in which revenue is calculated. -
totalAmount
public long totalAmountTotal amount of the cryptocurrency earned, in the smallest units of the cryptocurrency. -
balanceAmount
public long balanceAmountAmount of the cryptocurrency that isn't withdrawn yet, in the smallest units of the cryptocurrency. -
availableAmount
public long availableAmountAmount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency. -
withdrawalEnabled
public boolean withdrawalEnabledTrue, if Telegram Stars can be withdrawn now or later. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ChatRevenueAmount
public ChatRevenueAmount()Contains information about revenue earned from sponsored messages in a chat. -
ChatRevenueAmount
public ChatRevenueAmount(String cryptocurrency, long totalAmount, long balanceAmount, long availableAmount, boolean withdrawalEnabled) Contains information about revenue earned from sponsored messages in a chat.- Parameters:
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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-