haskell-tdlib-2.1.11.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.StakeDiceState

Documentation

data StakeDiceState Source #

Constructors

StakeDiceState

Describes state of the stake dice

Fields

  • state_hash :: Maybe Text

    Hash of the state to use for sending the next dice; may be empty if the stake dice can't be sent by the current user

  • stake_toncoin_amount :: Maybe Int

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

  • suggested_stake_toncoin_amounts :: Maybe [Int]

    The amounts of Toncoins that are suggested to be staked; in the smallest units of the currency

  • current_streak :: Maybe Int

    The number of rolled sixes towards the streak; 0-2

  • prize_per_mille :: Maybe [Int]

    The number of Toncoins received by the user for each 1000 Toncoins staked if the dice outcome is 1-6 correspondingly; may be empty if the stake dice can't be sent by the current user

  • streak_prize_per_mille :: Maybe Int

    The number of Toncoins received by the user for each 1000 Toncoins staked if the dice outcome is 6 three times in a row with the same stake