{-# LANGUAGE DeriveGeneric #-}
module Telegram.Bot.API.Types.BotShortDescription where

import Data.Aeson (FromJSON (..), ToJSON (..))
import Data.Text (Text)
import GHC.Generics (Generic)
import Telegram.Bot.API.Internal.Utils

-- ** 'BotShortDescription'

-- | This object represents the bot's short description.
data BotShortDescription = BotShortDescription
  { BotShortDescription -> Text
botShortDescriptionShortDescription :: Text -- ^ The bot's short description.
  }
  deriving (forall x. Rep BotShortDescription x -> BotShortDescription
forall x. BotShortDescription -> Rep BotShortDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BotShortDescription x -> BotShortDescription
$cfrom :: forall x. BotShortDescription -> Rep BotShortDescription x
Generic, Int -> BotShortDescription -> ShowS
[BotShortDescription] -> ShowS
BotShortDescription -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BotShortDescription] -> ShowS
$cshowList :: [BotShortDescription] -> ShowS
show :: BotShortDescription -> String
$cshow :: BotShortDescription -> String
showsPrec :: Int -> BotShortDescription -> ShowS
$cshowsPrec :: Int -> BotShortDescription -> ShowS
Show)

instance ToJSON   BotShortDescription where toJSON :: BotShortDescription -> 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 BotShortDescription where parseJSON :: Value -> Parser BotShortDescription
parseJSON = forall a (d :: Meta) (f :: * -> *).
(Generic a, GFromJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
Value -> Parser a
gparseJSON