telega-0.2.4: Telegram Bot API binding

Safe HaskellNone
LanguageHaskell2010

Network.API.Telegram.Bot.Object.Update.Message.Content.File.Voice

Documentation

data Voice Source #

Constructors

Voice Int (Maybe Text) (Maybe Int) 
Instances
Show Voice Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Update.Message.Content.File.Voice

Methods

showsPrec :: Int -> Voice -> ShowS #

show :: Voice -> String #

showList :: [Voice] -> ShowS #

FromJSON Voice Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Update.Message.Content.File.Voice

Methods

parseJSON :: Value -> Parser Voice

parseJSONList :: Value -> Parser [Voice]

Persistable (Send Voice) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Update.Message

Associated Types

type Payload (Send Voice) = (payload :: *) Source #

Persistable (Send (Caption :&: Voice)) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Update.Message

Associated Types

type Payload (Send (Caption :&: Voice)) = (payload :: *) Source #

Methods

payload :: Payload (Send (Caption :&: Voice)) -> Object Source #

endpoint :: Payload (Send (Caption :&: Voice)) -> String Source #

persist :: FromJSON r => Payload (Send (Caption :&: Voice)) -> Telegram e r Source #

persist_ :: Payload (Send (Caption :&: Voice)) -> Telegram e () Source #

type Payload (Send Voice) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Update.Message

type Payload (Send Voice) = Send (URI :&: Voice)
type Payload (Send (Caption :&: Voice)) Source # 
Instance details

Defined in Network.API.Telegram.Bot.Object.Update.Message

type Payload (Send (Caption :&: Voice)) = Send (Caption :&: (URI :&: Voice))