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 Toncoin amount 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 Toncoin amount 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