Interface InputMessageStakeDice

A stake dice message. Subtype of InputMessageContent.

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

Properties

@type: "inputMessageStakeDice"
clear_draft?: boolean

Pass true to delete message draft in the chat.

stake_gram_amount: number

The TON Gram 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.