{-# LANGUAGE DeriveGeneric #-} module Telegram.Bot.API.Types.WriteAccessAllowed where import Data.Aeson (FromJSON (..), ToJSON (..), Object) import GHC.Generics (Generic) import Telegram.Bot.API.Internal.Utils -- ** 'WriteAccessAllowed' -- | This object represents a service message about a user allowing a bot added to the attachment menu to write messages. Currently holds no information. newtype WriteAccessAllowed = WriteAccessAllowed Object deriving (Generic, Show) instance ToJSON WriteAccessAllowed where toJSON = gtoJSON instance FromJSON WriteAccessAllowed where parseJSON = gparseJSON