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

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

import Telegram.Bot.API.Internal.Utils

-- ** 'Story'

-- | This object represents a message about a forwarded story in the chat. Currently holds no information.

data Story = Story
  deriving ((forall x. Story -> Rep Story x)
-> (forall x. Rep Story x -> Story) -> Generic Story
forall x. Rep Story x -> Story
forall x. Story -> Rep Story x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. Story -> Rep Story x
from :: forall x. Story -> Rep Story x
$cto :: forall x. Rep Story x -> Story
to :: forall x. Rep Story x -> Story
Generic, Int -> Story -> ShowS
[Story] -> ShowS
Story -> String
(Int -> Story -> ShowS)
-> (Story -> String) -> ([Story] -> ShowS) -> Show Story
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Story -> ShowS
showsPrec :: Int -> Story -> ShowS
$cshow :: Story -> String
show :: Story -> String
$cshowList :: [Story] -> ShowS
showList :: [Story] -> ShowS
Show)

instance ToJSON Story where toJSON :: Story -> Value
toJSON = Story -> Value
forall a (d :: Meta) (f :: * -> *).
(Generic a, GToJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
a -> Value
gtoJSON
instance FromJSON Story where parseJSON :: Value -> Parser Story
parseJSON = Value -> Parser Story
forall a (d :: Meta) (f :: * -> *).
(Generic a, GFromJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
Value -> Parser a
gparseJSON