Package org.drinkless.tdlib

# Class TdApi.MessageDice

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageContent
org.drinkless.tdlib.TdApi.MessageDice

Enclosing class:
  `TdApi`

public static class TdApi.MessageDice extends TdApi.MessageContent
A dice message. The dice value is randomly generated by the server.

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.MessageContent

  `TdApi.MessageContent.Constructors`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.
  `String`
  `emoji`
  Emoji on which the dice throw animation is based.
  `TdApi.DiceStickers`
  `finalState`
  The animated stickers with the final dice animation; may be null if unknown.
  `TdApi.DiceStickers`
  `initialState`
  The animated stickers with the initial dice animation; may be null if unknown.
  `int`
  `successAnimationFrameNumber`
  Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded.
  `int`
  `value`
  The dice value.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MessageDice()`
  A dice message.
  `MessageDice(TdApi.DiceStickers initialState, TdApi.DiceStickers finalState, String emoji, int value, int successAnimationFrameNumber)`
  A dice message.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getConstructor()`
  Returns an identifier uniquely determining type of the object.

  ### Methods inherited from class org.drinkless.tdlib.TdApi.Object

  `toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### initialState

    @Nullable 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

    @Nullable 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.

  - ### emoji

    public String emoji
    Emoji on which the dice throw animation is based.

  - ### value

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

  - ### successAnimationFrameNumber

    public int successAnimationFrameNumber
    Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded.

  - ### CONSTRUCTOR

    public static final int CONSTRUCTOR
    Identifier uniquely determining type of the object.
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### MessageDice

    public MessageDice()
    A dice message. The dice value is randomly generated by the server.

  - ### MessageDice

    public MessageDice(TdApi.DiceStickers initialState, TdApi.DiceStickers finalState, String emoji, int value, int successAnimationFrameNumber)
    A 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.
      `emoji` - Emoji on which the dice throw animation is based.
      `value` - The dice value. If the value is 0, then the dice don't have final state yet.
      `successAnimationFrameNumber` - Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded.

- ## 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.MessageContent`
    Returns:
      this.CONSTRUCTOR