{-# LANGUAGE DeriveGeneric #-}
module Telegram.Bot.API.Types.SwitchInlineQueryChosenChat where
import Data.Aeson (FromJSON (..), ToJSON (..))
import Data.Text
import GHC.Generics (Generic)
import Telegram.Bot.API.Internal.Utils
data SwitchInlineQueryChosenChat = SwitchInlineQueryChosenChat
{ SwitchInlineQueryChosenChat -> Maybe Text
switchInlineQueryChosenChatQuery :: Maybe Text
, SwitchInlineQueryChosenChat -> Maybe Bool
switchInlineQueryChosenChatAllowUserChats :: Maybe Bool
, SwitchInlineQueryChosenChat -> Maybe Bool
switchInlineQueryChosenChatAllowBotChats :: Maybe Bool
, SwitchInlineQueryChosenChat -> Maybe Bool
switchInlineQueryChosenChatAllowGroupChats :: Maybe Bool
, SwitchInlineQueryChosenChat -> Maybe Bool
switchInlineQueryChosenChatAllowChannelChats :: Maybe Bool
}
deriving (Int -> SwitchInlineQueryChosenChat -> ShowS
[SwitchInlineQueryChosenChat] -> ShowS
SwitchInlineQueryChosenChat -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SwitchInlineQueryChosenChat] -> ShowS
$cshowList :: [SwitchInlineQueryChosenChat] -> ShowS
show :: SwitchInlineQueryChosenChat -> String
$cshow :: SwitchInlineQueryChosenChat -> String
showsPrec :: Int -> SwitchInlineQueryChosenChat -> ShowS
$cshowsPrec :: Int -> SwitchInlineQueryChosenChat -> ShowS
Show, forall x.
Rep SwitchInlineQueryChosenChat x -> SwitchInlineQueryChosenChat
forall x.
SwitchInlineQueryChosenChat -> Rep SwitchInlineQueryChosenChat x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SwitchInlineQueryChosenChat x -> SwitchInlineQueryChosenChat
$cfrom :: forall x.
SwitchInlineQueryChosenChat -> Rep SwitchInlineQueryChosenChat x
Generic)
instance ToJSON SwitchInlineQueryChosenChat where toJSON :: SwitchInlineQueryChosenChat -> 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 SwitchInlineQueryChosenChat where parseJSON :: Value -> Parser SwitchInlineQueryChosenChat
parseJSON = forall a (d :: Meta) (f :: * -> *).
(Generic a, GFromJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
Value -> Parser a
gparseJSON