public static class TdApi.MessageDice extends TdApi.MessageContent
TdApi.MessageContent.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.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. updateMessageContent will be sent when the sticker became known.
|
TdApi.DiceStickers |
initialState
The animated stickers with the initial dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known.
|
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 and Description |
---|
MessageDice()
A dice message.
|
MessageDice(TdApi.DiceStickers initialState,
TdApi.DiceStickers finalState,
java.lang.String emoji,
int value,
int successAnimationFrameNumber)
A dice message.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
@Nullable public TdApi.DiceStickers initialState
@Nullable public TdApi.DiceStickers finalState
public java.lang.String emoji
public int value
public int successAnimationFrameNumber
public static final int CONSTRUCTOR
public MessageDice()
public MessageDice(TdApi.DiceStickers initialState, TdApi.DiceStickers finalState, java.lang.String emoji, int value, int successAnimationFrameNumber)
initialState
- The animated stickers with the initial dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known.finalState
- The animated stickers with the final dice animation; may be null if unknown. 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, 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.public int getConstructor()
getConstructor
in class TdApi.MessageContent