Interface MessageStakeDice

A stake dice message. The dice value is randomly generated by the server. Subtype of MessageContent.

interface MessageStakeDice {
    @type: "messageStakeDice";
    final_state: DiceStickers;
    initial_state: DiceStickers;
    prize_toncoin_amount: number;
    stake_toncoin_amount: number;
    value: number;
}

Properties

@type: "messageStakeDice"
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.

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.

prize_toncoin_amount: number

The Toncoin amount that was gained from the roll; in the smallest units of the currency; -1 if the dice don't have final state yet.

stake_toncoin_amount: number

The Toncoin amount that was staked; in the smallest units of the currency.

value: number

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