{-# 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. ForumTopicClosed -> Rep ForumTopicClosed x)
-> (forall x. Rep ForumTopicClosed x -> ForumTopicClosed)
-> Generic ForumTopicClosed
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
$cfrom :: forall x. ForumTopicClosed -> Rep ForumTopicClosed x
from :: forall x. ForumTopicClosed -> Rep ForumTopicClosed x
$cto :: forall x. Rep ForumTopicClosed x -> ForumTopicClosed
to :: forall x. Rep ForumTopicClosed x -> ForumTopicClosed
Generic, Int -> ForumTopicClosed -> ShowS
[ForumTopicClosed] -> ShowS
ForumTopicClosed -> String
(Int -> ForumTopicClosed -> ShowS)
-> (ForumTopicClosed -> String)
-> ([ForumTopicClosed] -> ShowS)
-> Show ForumTopicClosed
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ForumTopicClosed -> ShowS
showsPrec :: Int -> ForumTopicClosed -> ShowS
$cshow :: ForumTopicClosed -> String
show :: ForumTopicClosed -> String
$cshowList :: [ForumTopicClosed] -> ShowS
showList :: [ForumTopicClosed] -> ShowS
Show)

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