Class TdApi.InputMessageStakeDice

Enclosing class:
TdApi

public static class TdApi.InputMessageStakeDice extends TdApi.InputMessageContent
A stake dice message.
  • Field Details

    • stateHash

      public String stateHash
      Hash of the stake dice state. The state hash can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState.
    • stakeToncoinAmount

      public long stakeToncoinAmount
      The amount of Toncoins that will be staked; in the smallest units of the currency. Must be in the range getOption("stake_dice_stake_amount_min")-getOption("stake_dice_stake_amount_max").
    • clearDraft

      public boolean clearDraft
      True, if the chat message draft must be deleted.
    • CONSTRUCTOR

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

    • InputMessageStakeDice

      public InputMessageStakeDice()
      A stake dice message.
    • InputMessageStakeDice

      public InputMessageStakeDice(String stateHash, long stakeToncoinAmount, boolean clearDraft)
      A stake dice message.
      Parameters:
      stateHash - Hash of the stake dice state. The state hash can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState.
      stakeToncoinAmount - The amount of Toncoins that will be staked; in the smallest units of the currency. Must be in the range getOption("stake_dice_stake_amount_min")-getOption("stake_dice_stake_amount_max").
      clearDraft - True, if the chat message draft must be deleted.
  • 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