Interface InputMessageStakeDice

A stake dice message. Subtype of InputMessageContent.

interface InputMessageStakeDice {
    @type: "inputMessageStakeDice";
    clear_draft?: boolean;
    stake_toncoin_amount: number;
    state_hash: string;
}

Properties

@type: "inputMessageStakeDice"
clear_draft?: boolean

True, if the chat message draft must be deleted.

stake_toncoin_amount: number

The Toncoin amount that will be staked; in the smallest units of the currency. Must be in the range getOption("stake_dice_stake_amount_min")-getOption("stake_dice_stake_amount_max").

state_hash: string

Hash of the stake dice state. The state hash can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState.