Class TdApi.ChatRevenueAmount
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.ChatRevenueAmount
- Enclosing class:
- TdApi
Contains information about revenue earned from sponsored messages in a chat.
-
Field Summary
Modifier and TypeFieldDescriptionlong
Amount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency.long
Amount of the cryptocurrency that isn't withdrawn yet, in the smallest units of the cryptocurrency.static final int
Identifier uniquely determining type of the object.Cryptocurrency in which revenue is calculated.long
Total amount of the cryptocurrency earned, in the smallest units of the cryptocurrency. -
Constructor Summary
ConstructorDescriptionContains information about revenue earned from sponsored messages in a chat.ChatRevenueAmount
(String cryptocurrency, long totalAmount, long balanceAmount, long availableAmount) Contains information about revenue earned from sponsored messages in a chat. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.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. -
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) 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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-