module TD.Query.GetChatAvailablePaidMessageReactionSenders
(GetChatAvailablePaidMessageReactionSenders(..)
) where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I
data GetChatAvailablePaidMessageReactionSenders
= GetChatAvailablePaidMessageReactionSenders
{ GetChatAvailablePaidMessageReactionSenders -> Maybe Int
chat_id :: Maybe Int
}
deriving (GetChatAvailablePaidMessageReactionSenders
-> GetChatAvailablePaidMessageReactionSenders -> Bool
(GetChatAvailablePaidMessageReactionSenders
-> GetChatAvailablePaidMessageReactionSenders -> Bool)
-> (GetChatAvailablePaidMessageReactionSenders
-> GetChatAvailablePaidMessageReactionSenders -> Bool)
-> Eq GetChatAvailablePaidMessageReactionSenders
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetChatAvailablePaidMessageReactionSenders
-> GetChatAvailablePaidMessageReactionSenders -> Bool
== :: GetChatAvailablePaidMessageReactionSenders
-> GetChatAvailablePaidMessageReactionSenders -> Bool
$c/= :: GetChatAvailablePaidMessageReactionSenders
-> GetChatAvailablePaidMessageReactionSenders -> Bool
/= :: GetChatAvailablePaidMessageReactionSenders
-> GetChatAvailablePaidMessageReactionSenders -> Bool
Eq, Int -> GetChatAvailablePaidMessageReactionSenders -> ShowS
[GetChatAvailablePaidMessageReactionSenders] -> ShowS
GetChatAvailablePaidMessageReactionSenders -> String
(Int -> GetChatAvailablePaidMessageReactionSenders -> ShowS)
-> (GetChatAvailablePaidMessageReactionSenders -> String)
-> ([GetChatAvailablePaidMessageReactionSenders] -> ShowS)
-> Show GetChatAvailablePaidMessageReactionSenders
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetChatAvailablePaidMessageReactionSenders -> ShowS
showsPrec :: Int -> GetChatAvailablePaidMessageReactionSenders -> ShowS
$cshow :: GetChatAvailablePaidMessageReactionSenders -> String
show :: GetChatAvailablePaidMessageReactionSenders -> String
$cshowList :: [GetChatAvailablePaidMessageReactionSenders] -> ShowS
showList :: [GetChatAvailablePaidMessageReactionSenders] -> ShowS
Show)
instance I.ShortShow GetChatAvailablePaidMessageReactionSenders where
shortShow :: GetChatAvailablePaidMessageReactionSenders -> String
shortShow
GetChatAvailablePaidMessageReactionSenders
{ chat_id :: GetChatAvailablePaidMessageReactionSenders -> Maybe Int
chat_id = Maybe Int
chat_id_
}
= String
"GetChatAvailablePaidMessageReactionSenders"
String -> ShowS
forall a. [a] -> [a] -> [a]
++ [String] -> String
I.cc
[ String
"chat_id" String -> Maybe Int -> String
forall a. ShortShow a => String -> Maybe a -> String
`I.p` Maybe Int
chat_id_
]
instance AT.ToJSON GetChatAvailablePaidMessageReactionSenders where
toJSON :: GetChatAvailablePaidMessageReactionSenders -> Value
toJSON
GetChatAvailablePaidMessageReactionSenders
{ chat_id :: GetChatAvailablePaidMessageReactionSenders -> Maybe Int
chat_id = Maybe Int
chat_id_
}
= [Pair] -> Value
A.object
[ Key
"@type" Key -> Value -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Text -> Value
AT.String Text
"getChatAvailablePaidMessageReactionSenders"
, Key
"chat_id" Key -> Maybe Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Maybe Int
chat_id_
]