Class TdApi.MessageStakeDice

Enclosing class:
TdApi

public static class TdApi.MessageStakeDice extends TdApi.MessageContent
A stake dice message. The dice value is randomly generated by the server.
  • Field Details

    • initialState

      public TdApi.DiceStickers initialState
      The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known.
    • finalState

      public TdApi.DiceStickers finalState
      The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known.
    • value

      public int value
      The dice value. If the value is 0, then the dice don't have final state yet.
    • stakeGramAmount

      public long stakeGramAmount
      The TON Gram amount that was staked; in the smallest units of the currency.
    • prizeGramAmount

      public long prizeGramAmount
      The TON Gram amount that was gained from the roll; in the smallest units of the currency; -1 if the dice don't have final state yet.
    • CONSTRUCTOR

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

    • MessageStakeDice

      public MessageStakeDice()
      A stake dice message. The dice value is randomly generated by the server.
    • MessageStakeDice

      public MessageStakeDice(TdApi.DiceStickers initialState, TdApi.DiceStickers finalState, int value, long stakeGramAmount, long prizeGramAmount)
      A stake dice message. The dice value is randomly generated by the server.
      Parameters:
      initialState - The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known.
      finalState - The animated stickers with the final dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known.
      value - The dice value. If the value is 0, then the dice don't have final state yet.
      stakeGramAmount - The TON Gram amount that was staked; in the smallest units of the currency.
      prizeGramAmount - The TON Gram amount that was gained from the roll; in the smallest units of the currency; -1 if the dice don't have final state yet.
  • 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