Skip to content

MessageDice

Type · TDLib 1.8.67 · d1085f9c

A dice message. The dice value is randomly generated by the server

MessageDice(
  initial_state: DiceStickers,
  final_state: DiceStickers,
  emoji: string,
  value: int32,
  success_animation_frame_number: int32
) → MessageContent

initial_state

DiceStickers

The animated stickers with the initial dice animation; may be null if unknown. The update updateMessageContent will be sent when the sticker became known

final_state

DiceStickers

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

string

Emoji on which the dice throw animation is based

value

int32

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

success_animation_frame_number

int32

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