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

Telegram.Bot.API.Types.KeyboardButton

Synopsis

KeyboardButton

data KeyboardButton Source #

This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields are mutually exclusive.

Constructors

KeyboardButton 

Fields

Instances

Instances details
Show KeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types.KeyboardButton

IsString KeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types.KeyboardButton

Generic KeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types.KeyboardButton

Associated Types

type Rep KeyboardButton :: Type -> Type #

FromJSON KeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types.KeyboardButton

Methods

parseJSON :: Value -> Parser KeyboardButton

parseJSONList :: Value -> Parser [KeyboardButton]

ToJSON KeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types.KeyboardButton

Methods

toJSON :: KeyboardButton -> Value

toEncoding :: KeyboardButton -> Encoding

toJSONList :: [KeyboardButton] -> Value

toEncodingList :: [KeyboardButton] -> Encoding

type Rep KeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types.KeyboardButton

type Rep KeyboardButton = D1 ('MetaData "KeyboardButton" "Telegram.Bot.API.Types.KeyboardButton" "telegram-bot-api-6.5-inplace" 'False) (C1 ('MetaCons "KeyboardButton" 'PrefixI 'True) ((S1 ('MetaSel ('Just "keyboardButtonText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "keyboardButtonRequestUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe KeyboardButtonRequestUser)) :*: S1 ('MetaSel ('Just "keyboardButtonRequestChat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe KeyboardButtonRequestChat)))) :*: ((S1 ('MetaSel ('Just "keyboardButtonRequestContact") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "keyboardButtonRequestLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "keyboardButtonRequestPoll") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PollType)) :*: S1 ('MetaSel ('Just "keyboardButtonWebApp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe WebAppInfo))))))