module TD.Query.GetCustomEmojiReactionAnimations
  (GetCustomEmojiReactionAnimations(..)
  ) where

import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I

-- | Returns TGS stickers with generic animations for custom emoji reactions. Returns 'TD.Data.Stickers.Stickers'
data GetCustomEmojiReactionAnimations
  = GetCustomEmojiReactionAnimations
  deriving (GetCustomEmojiReactionAnimations
-> GetCustomEmojiReactionAnimations -> Bool
(GetCustomEmojiReactionAnimations
 -> GetCustomEmojiReactionAnimations -> Bool)
-> (GetCustomEmojiReactionAnimations
    -> GetCustomEmojiReactionAnimations -> Bool)
-> Eq GetCustomEmojiReactionAnimations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetCustomEmojiReactionAnimations
-> GetCustomEmojiReactionAnimations -> Bool
== :: GetCustomEmojiReactionAnimations
-> GetCustomEmojiReactionAnimations -> Bool
$c/= :: GetCustomEmojiReactionAnimations
-> GetCustomEmojiReactionAnimations -> Bool
/= :: GetCustomEmojiReactionAnimations
-> GetCustomEmojiReactionAnimations -> Bool
Eq, Int -> GetCustomEmojiReactionAnimations -> ShowS
[GetCustomEmojiReactionAnimations] -> ShowS
GetCustomEmojiReactionAnimations -> String
(Int -> GetCustomEmojiReactionAnimations -> ShowS)
-> (GetCustomEmojiReactionAnimations -> String)
-> ([GetCustomEmojiReactionAnimations] -> ShowS)
-> Show GetCustomEmojiReactionAnimations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetCustomEmojiReactionAnimations -> ShowS
showsPrec :: Int -> GetCustomEmojiReactionAnimations -> ShowS
$cshow :: GetCustomEmojiReactionAnimations -> String
show :: GetCustomEmojiReactionAnimations -> String
$cshowList :: [GetCustomEmojiReactionAnimations] -> ShowS
showList :: [GetCustomEmojiReactionAnimations] -> ShowS
Show)

instance I.ShortShow GetCustomEmojiReactionAnimations where
  shortShow :: GetCustomEmojiReactionAnimations -> String
shortShow
    GetCustomEmojiReactionAnimations
GetCustomEmojiReactionAnimations
        = String
"GetCustomEmojiReactionAnimations"

instance AT.ToJSON GetCustomEmojiReactionAnimations where
  toJSON :: GetCustomEmojiReactionAnimations -> Value
toJSON
    GetCustomEmojiReactionAnimations
GetCustomEmojiReactionAnimations
        = [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
"getCustomEmojiReactionAnimations"
          ]