{-# LANGUAGE DataKinds #-} {-# LANGUAGE TypeApplications #-} {-# LANGUAGE TypeOperators #-} module Telegram.Bot.API.Methods.GetMe where import Data.Proxy import Servant.API import Servant.Client hiding (Response) import Telegram.Bot.API.MakingRequests import Telegram.Bot.API.Types -- ** 'getMe' type GetMe = "getMe" :> Get '[JSON] (Response User) -- | A simple method for testing your bot's auth token. -- Requires no parameters. -- Returns basic information about the bot in form of a 'User' object. getMe :: ClientM (Response User) getMe = client (Proxy @GetMe)