module TD.Query.RemoveStickerFromSet
(RemoveStickerFromSet(..)
) where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I
import qualified TD.Data.InputFile as InputFile
data RemoveStickerFromSet
= RemoveStickerFromSet
{ RemoveStickerFromSet -> Maybe InputFile
sticker :: Maybe InputFile.InputFile
}
deriving (RemoveStickerFromSet -> RemoveStickerFromSet -> Bool
(RemoveStickerFromSet -> RemoveStickerFromSet -> Bool)
-> (RemoveStickerFromSet -> RemoveStickerFromSet -> Bool)
-> Eq RemoveStickerFromSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RemoveStickerFromSet -> RemoveStickerFromSet -> Bool
== :: RemoveStickerFromSet -> RemoveStickerFromSet -> Bool
$c/= :: RemoveStickerFromSet -> RemoveStickerFromSet -> Bool
/= :: RemoveStickerFromSet -> RemoveStickerFromSet -> Bool
Eq, Int -> RemoveStickerFromSet -> ShowS
[RemoveStickerFromSet] -> ShowS
RemoveStickerFromSet -> String
(Int -> RemoveStickerFromSet -> ShowS)
-> (RemoveStickerFromSet -> String)
-> ([RemoveStickerFromSet] -> ShowS)
-> Show RemoveStickerFromSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RemoveStickerFromSet -> ShowS
showsPrec :: Int -> RemoveStickerFromSet -> ShowS
$cshow :: RemoveStickerFromSet -> String
show :: RemoveStickerFromSet -> String
$cshowList :: [RemoveStickerFromSet] -> ShowS
showList :: [RemoveStickerFromSet] -> ShowS
Show)
instance I.ShortShow RemoveStickerFromSet where
shortShow :: RemoveStickerFromSet -> String
shortShow
RemoveStickerFromSet
{ sticker :: RemoveStickerFromSet -> Maybe InputFile
sticker = Maybe InputFile
sticker_
}
= String
"RemoveStickerFromSet"
String -> ShowS
forall a. [a] -> [a] -> [a]
++ [String] -> String
I.cc
[ String
"sticker" String -> Maybe InputFile -> String
forall a. ShortShow a => String -> Maybe a -> String
`I.p` Maybe InputFile
sticker_
]
instance AT.ToJSON RemoveStickerFromSet where
toJSON :: RemoveStickerFromSet -> Value
toJSON
RemoveStickerFromSet
{ sticker :: RemoveStickerFromSet -> Maybe InputFile
sticker = Maybe InputFile
sticker_
}
= [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
"removeStickerFromSet"
, Key
"sticker" Key -> Maybe InputFile -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Maybe InputFile
sticker_
]