telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellNone
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
Show Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Dice

Methods

showsPrec :: Int -> Dice -> ShowS #

show :: Dice -> String #

showList :: [Dice] -> ShowS #

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 #

FromJSON Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Dice

Methods

parseJSON :: Value -> Parser Dice

parseJSONList :: Value -> Parser [Dice]

ToJSON Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Dice

Methods

toJSON :: Dice -> Value

toEncoding :: Dice -> Encoding

toJSONList :: [Dice] -> Value

toEncodingList :: [Dice] -> Encoding

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-6.5-inplace" 'False) (C1 ('MetaCons "Dice" 'PrefixI 'True) (S1 ('MetaSel ('Just "diceEmoji") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "diceValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))