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

import Data.Aeson (FromJSON (..), ToJSON (..), Object)
import GHC.Generics (Generic)

import Telegram.Bot.API.Internal.Utils

-- ** 'GeneralForumTopicUnhidden'

-- | This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.
newtype GeneralForumTopicUnhidden = GeneralForumTopicUnhidden Object
  deriving (forall x.
Rep GeneralForumTopicUnhidden x -> GeneralForumTopicUnhidden
forall x.
GeneralForumTopicUnhidden -> Rep GeneralForumTopicUnhidden x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GeneralForumTopicUnhidden x -> GeneralForumTopicUnhidden
$cfrom :: forall x.
GeneralForumTopicUnhidden -> Rep GeneralForumTopicUnhidden x
Generic, Int -> GeneralForumTopicUnhidden -> ShowS
[GeneralForumTopicUnhidden] -> ShowS
GeneralForumTopicUnhidden -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GeneralForumTopicUnhidden] -> ShowS
$cshowList :: [GeneralForumTopicUnhidden] -> ShowS
show :: GeneralForumTopicUnhidden -> String
$cshow :: GeneralForumTopicUnhidden -> String
showsPrec :: Int -> GeneralForumTopicUnhidden -> ShowS
$cshowsPrec :: Int -> GeneralForumTopicUnhidden -> ShowS
Show)

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