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

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

import Telegram.Bot.API.Internal.Utils

-- ** 'ForumTopicReopened'

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

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