telega-0.1.3: Telegram Bot API binding

Safe HaskellNone
LanguageHaskell2010

Network.Telegram.API.Bot.Object.Button

Documentation

data Button Source #

Constructors

Button Text Pressed 
Instances
Show Button Source # 
Instance details

Defined in Network.Telegram.API.Bot.Object.Button

FromJSON Button Source # 
Instance details

Defined in Network.Telegram.API.Bot.Object.Button

Methods

parseJSON :: Value -> Parser Button

parseJSONList :: Value -> Parser [Button]

ToJSON Button Source # 
Instance details

Defined in Network.Telegram.API.Bot.Object.Button

Methods

toJSON :: Button -> Value

toEncoding :: Button -> Encoding

toJSONList :: [Button] -> Value

toEncodingList :: [Button] -> Encoding

data Pressed Source #

Constructors

Open Text 
Callback Text 
Instances
Show Pressed Source # 
Instance details

Defined in Network.Telegram.API.Bot.Object.Button

FromJSON Pressed Source # 
Instance details

Defined in Network.Telegram.API.Bot.Object.Button

Methods

parseJSON :: Value -> Parser Pressed

parseJSONList :: Value -> Parser [Pressed]