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