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

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

import Telegram.Bot.API.Internal.Utils

-- ** 'ForumTopicClosed'

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

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