packages feed

telegram-bot-api-7.3 / src / Telegram / Bot / API / Methods / GetMe.hs

{-# LANGUAGE DataKinds #-}{-# LANGUAGE TypeApplications #-}{-# LANGUAGE TypeOperators #-}module Telegram.Bot.API.Methods.GetMe whereimport Data.Proxyimport Servant.APIimport Servant.Client hiding (Response)import Telegram.Bot.API.MakingRequestsimport 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)