Class TdApi.StarRevenueStatus

java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    The number of Telegram Stars that are available for withdrawal.
    static final int
    Identifier uniquely determining type of the object.
    long
    The number of Telegram Stars that aren't withdrawn yet.
    int
    Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.
    long
    Total number of Telegram Stars earned.
    boolean
    True, if Telegram Stars can be withdrawn now or later.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Contains information about Telegram Stars earned by a bot or a chat.
    StarRevenueStatus(long totalCount, long currentCount, long availableCount, boolean withdrawalEnabled, int nextWithdrawalIn)
    Contains information about Telegram Stars earned by a bot or 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

    • totalCount

      public long totalCount
      Total number of Telegram Stars earned.
    • currentCount

      public long currentCount
      The number of Telegram Stars that aren't withdrawn yet.
    • availableCount

      public long availableCount
      The number 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(long totalCount, long currentCount, long availableCount, boolean withdrawalEnabled, int nextWithdrawalIn)
      Contains information about Telegram Stars earned by a bot or a chat.
      Parameters:
      totalCount - Total number of Telegram Stars earned.
      currentCount - The number of Telegram Stars that aren't withdrawn yet.
      availableCount - The number 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