telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.Types.Voice

Contents

Synopsis

Voice

data Voice Source #

This object represents a voice note.

Constructors

Voice 

Fields

Instances

Instances details
Show Voice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Voice

Methods

showsPrec :: Int -> Voice -> ShowS #

show :: Voice -> String #

showList :: [Voice] -> ShowS #

Generic Voice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Voice

Associated Types

type Rep Voice :: Type -> Type #

Methods

from :: Voice -> Rep Voice x #

to :: Rep Voice x -> Voice #

FromJSON Voice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Voice

Methods

parseJSON :: Value -> Parser Voice

parseJSONList :: Value -> Parser [Voice]

ToJSON Voice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Voice

Methods

toJSON :: Voice -> Value

toEncoding :: Voice -> Encoding

toJSONList :: [Voice] -> Value

toEncodingList :: [Voice] -> Encoding

type Rep Voice Source # 
Instance details

Defined in Telegram.Bot.API.Types.Voice

type Rep Voice = D1 ('MetaData "Voice" "Telegram.Bot.API.Types.Voice" "telegram-bot-api-6.5-inplace" 'False) (C1 ('MetaCons "Voice" 'PrefixI 'True) ((S1 ('MetaSel ('Just "voiceFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "voiceFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId)) :*: (S1 ('MetaSel ('Just "voiceDuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Seconds) :*: (S1 ('MetaSel ('Just "voiceMimeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "voiceFileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer))))))