telegram-bot-api-7.4.4: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Types.Dice

Contents

Synopsis

Dice

data Dice Source #

This object represents an animated emoji that displays a random value.

Constructors

Dice 

Fields

  • diceEmoji :: Text

    Emoji on which the dice throw animation is based.

  • diceValue :: Int

    Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji

Instances

Instances details
FromJSON Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Dice

ToJSON Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Dice

Generic Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Dice

Associated Types

type Rep Dice :: Type -> Type #

Methods

from :: Dice -> Rep Dice x #

to :: Rep Dice x -> Dice #

Show Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Dice

Methods

showsPrec :: Int -> Dice -> ShowS #

show :: Dice -> String #

showList :: [Dice] -> ShowS #

type Rep Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Dice

type Rep Dice = D1 ('MetaData "Dice" "Telegram.Bot.API.Types.Dice" "telegram-bot-api-7.4.4-fdOK3VCUfTCfzXncfzYz7" 'False) (C1 ('MetaCons "Dice" 'PrefixI 'True) (S1 ('MetaSel ('Just "diceEmoji") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "diceValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))