{-# 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.
 GeneralForumTopicUnhidden -> Rep GeneralForumTopicUnhidden x)
-> (forall x.
    Rep GeneralForumTopicUnhidden x -> GeneralForumTopicUnhidden)
-> Generic GeneralForumTopicUnhidden
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
(Int -> GeneralForumTopicUnhidden -> ShowS)
-> (GeneralForumTopicUnhidden -> String)
-> ([GeneralForumTopicUnhidden] -> ShowS)
-> Show GeneralForumTopicUnhidden
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 = GeneralForumTopicUnhidden -> Value
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 = Value -> Parser GeneralForumTopicUnhidden
forall a (d :: Meta) (f :: * -> *).
(Generic a, GFromJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
Value -> Parser a
gparseJSON