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

Telegram.Bot.API.Methods.SendDice

Contents

Synopsis

sendDice

data SendDiceRequest Source #

Request parameters for sendDice.

Constructors

SendDiceRequest 

Fields

Instances

Instances details
FromJSON SendDiceRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SendDice

ToJSON SendDiceRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SendDice

Generic SendDiceRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SendDice

Associated Types

type Rep SendDiceRequest :: Type -> Type #

type Rep SendDiceRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SendDice

type Rep SendDiceRequest = D1 ('MetaData "SendDiceRequest" "Telegram.Bot.API.Methods.SendDice" "telegram-bot-api-7.0-2XShkJeCLX71W7OKNKemWZ" 'False) (C1 ('MetaCons "SendDiceRequest" 'PrefixI 'True) (((S1 ('MetaSel ('Just "sendDiceChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: S1 ('MetaSel ('Just "sendDiceMessageThreadId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageThreadId))) :*: (S1 ('MetaSel ('Just "sendDiceEmoji") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sendDiceDisableNotification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "sendDiceProtectContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "sendDiceReplyToMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId))) :*: (S1 ('MetaSel ('Just "sendDiceReplyParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ReplyParameters)) :*: S1 ('MetaSel ('Just "sendDiceReplyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InlineKeyboardMarkup))))))

sendDice :: SendDiceRequest -> ClientM (Response Message) Source #

Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned.