Class TdApi.ChatRevenueAmount

java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.ChatRevenueAmount
Enclosing class:
TdApi

public static class TdApi.ChatRevenueAmount extends TdApi.Object
Contains information about revenue earned from sponsored messages in a chat.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    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

    Constructors
    Constructor
    Description
    Contains 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 Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • cryptocurrency

      public String cryptocurrency
      Cryptocurrency in which revenue is calculated.
    • totalAmount

      public long totalAmount
      Total amount of the cryptocurrency earned, in the smallest units of the cryptocurrency.
    • balanceAmount

      public long balanceAmount
      Amount of the cryptocurrency that isn't withdrawn yet, in the smallest units of the cryptocurrency.
    • availableAmount

      public long availableAmount
      Amount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR