module TD.Query.ClearRecentlyFoundChats
  (ClearRecentlyFoundChats(..)
  ) where

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

-- | Clears the list of recently found chats. Returns 'TD.Data.Ok.Ok'
data ClearRecentlyFoundChats
  = ClearRecentlyFoundChats
  deriving (ClearRecentlyFoundChats -> ClearRecentlyFoundChats -> Bool
(ClearRecentlyFoundChats -> ClearRecentlyFoundChats -> Bool)
-> (ClearRecentlyFoundChats -> ClearRecentlyFoundChats -> Bool)
-> Eq ClearRecentlyFoundChats
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClearRecentlyFoundChats -> ClearRecentlyFoundChats -> Bool
== :: ClearRecentlyFoundChats -> ClearRecentlyFoundChats -> Bool
$c/= :: ClearRecentlyFoundChats -> ClearRecentlyFoundChats -> Bool
/= :: ClearRecentlyFoundChats -> ClearRecentlyFoundChats -> Bool
Eq, Int -> ClearRecentlyFoundChats -> ShowS
[ClearRecentlyFoundChats] -> ShowS
ClearRecentlyFoundChats -> String
(Int -> ClearRecentlyFoundChats -> ShowS)
-> (ClearRecentlyFoundChats -> String)
-> ([ClearRecentlyFoundChats] -> ShowS)
-> Show ClearRecentlyFoundChats
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClearRecentlyFoundChats -> ShowS
showsPrec :: Int -> ClearRecentlyFoundChats -> ShowS
$cshow :: ClearRecentlyFoundChats -> String
show :: ClearRecentlyFoundChats -> String
$cshowList :: [ClearRecentlyFoundChats] -> ShowS
showList :: [ClearRecentlyFoundChats] -> ShowS
Show)

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

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