Telegram.Bot.API.Types.Voice
Contents
Voice
data Voice Source #
This object represents a voice note.
Constructors
Fields
Unique identifier for this file.
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
Duration of the audio in seconds as defined by sender.
MIME type of the file as defined by sender.
File size in bytes.
Defined in Telegram.Bot.API.Types.Voice
Methods
showsPrec :: Int -> Voice -> ShowS #
show :: Voice -> String #
showList :: [Voice] -> ShowS #
Associated Types
type Rep Voice :: Type -> Type #
from :: Voice -> Rep Voice x #
to :: Rep Voice x -> Voice #
parseJSON :: Value -> Parser Voice
parseJSONList :: Value -> Parser [Voice]
toJSON :: Voice -> Value
toEncoding :: Voice -> Encoding
toJSONList :: [Voice] -> Value
toEncodingList :: [Voice] -> Encoding