{-# 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
newtype ForumTopicReopened = ForumTopicReopened Object
deriving ((forall x. ForumTopicReopened -> Rep ForumTopicReopened x)
-> (forall x. Rep ForumTopicReopened x -> ForumTopicReopened)
-> Generic ForumTopicReopened
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
$cfrom :: forall x. ForumTopicReopened -> Rep ForumTopicReopened x
from :: forall x. ForumTopicReopened -> Rep ForumTopicReopened x
$cto :: forall x. Rep ForumTopicReopened x -> ForumTopicReopened
to :: forall x. Rep ForumTopicReopened x -> ForumTopicReopened
Generic, Int -> ForumTopicReopened -> ShowS
[ForumTopicReopened] -> ShowS
ForumTopicReopened -> String
(Int -> ForumTopicReopened -> ShowS)
-> (ForumTopicReopened -> String)
-> ([ForumTopicReopened] -> ShowS)
-> Show ForumTopicReopened
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ForumTopicReopened -> ShowS
showsPrec :: Int -> ForumTopicReopened -> ShowS
$cshow :: ForumTopicReopened -> String
show :: ForumTopicReopened -> String
$cshowList :: [ForumTopicReopened] -> ShowS
showList :: [ForumTopicReopened] -> ShowS
Show)
instance ToJSON ForumTopicReopened where toJSON :: ForumTopicReopened -> Value
toJSON = ForumTopicReopened -> Value
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 = Value -> Parser ForumTopicReopened
forall a (d :: Meta) (f :: * -> *).
(Generic a, GFromJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
Value -> Parser a
gparseJSON