{-# LANGUAGE DeriveGeneric #-}
module Telegram.Bot.API.Types.ReplyKeyboardMarkup where
import Data.Aeson (FromJSON (..), ToJSON (..))
import Data.Text (Text)
import GHC.Generics (Generic)
import Telegram.Bot.API.Types.KeyboardButton
import Telegram.Bot.API.Internal.Utils
data ReplyKeyboardMarkup = ReplyKeyboardMarkup
{ ReplyKeyboardMarkup -> [[KeyboardButton]]
replyKeyboardMarkupKeyboard :: [[KeyboardButton]]
, ReplyKeyboardMarkup -> Maybe Bool
replyKeyboardMarkupIsPersistent :: Maybe Bool
, ReplyKeyboardMarkup -> Maybe Bool
replyKeyboardMarkupResizeKeyboard :: Maybe Bool
, ReplyKeyboardMarkup -> Maybe Bool
replyKeyboardMarkupOneTimeKeyboard :: Maybe Bool
, ReplyKeyboardMarkup -> Maybe Text
replyKeyboardMarkupInputFieldSelector :: Maybe Text
, ReplyKeyboardMarkup -> Maybe Bool
replyKeyboardMarkupSelective :: Maybe Bool
}
deriving (forall x. Rep ReplyKeyboardMarkup x -> ReplyKeyboardMarkup
forall x. ReplyKeyboardMarkup -> Rep ReplyKeyboardMarkup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ReplyKeyboardMarkup x -> ReplyKeyboardMarkup
$cfrom :: forall x. ReplyKeyboardMarkup -> Rep ReplyKeyboardMarkup x
Generic, Int -> ReplyKeyboardMarkup -> ShowS
[ReplyKeyboardMarkup] -> ShowS
ReplyKeyboardMarkup -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ReplyKeyboardMarkup] -> ShowS
$cshowList :: [ReplyKeyboardMarkup] -> ShowS
show :: ReplyKeyboardMarkup -> String
$cshow :: ReplyKeyboardMarkup -> String
showsPrec :: Int -> ReplyKeyboardMarkup -> ShowS
$cshowsPrec :: Int -> ReplyKeyboardMarkup -> ShowS
Show)
instance ToJSON ReplyKeyboardMarkup where toJSON :: ReplyKeyboardMarkup -> Value
toJSON = forall a (d :: Meta) (f :: * -> *).
(Generic a, GToJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
a -> Value
gtoJSON
instance FromJSON ReplyKeyboardMarkup where parseJSON :: Value -> Parser ReplyKeyboardMarkup
parseJSON = forall a (d :: Meta) (f :: * -> *).
(Generic a, GFromJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
Value -> Parser a
gparseJSON