Class TdApi.StarRevenueStatus

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StarRevenueStatus
Enclosing class:
TdApi

public static class TdApi.StarRevenueStatus extends TdApi.Object
Contains information about Telegram Stars earned by a bot or a chat.
  • Field Details

    • totalAmount

      public TdApi.StarAmount totalAmount
      Total amount of Telegram Stars earned.
    • currentAmount

      public TdApi.StarAmount currentAmount
      The amount of Telegram Stars that aren't withdrawn yet.
    • availableAmount

      public TdApi.StarAmount availableAmount
      The amount of Telegram Stars that are available for withdrawal.
    • withdrawalEnabled

      public boolean withdrawalEnabled
      True, if Telegram Stars can be withdrawn now or later.
    • nextWithdrawalIn

      public int nextWithdrawalIn
      Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • StarRevenueStatus

      public StarRevenueStatus()
      Contains information about Telegram Stars earned by a bot or a chat.
    • StarRevenueStatus

      public 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.
      Parameters:
      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.
  • 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