packages feed

telegram-bot-api-6.7.1 / src / Telegram / Bot / API / Methods / GetChatMemberCount.hs

{-# LANGUAGE DataKinds #-}{-# LANGUAGE TypeApplications #-}{-# LANGUAGE TypeOperators #-}module Telegram.Bot.API.Methods.GetChatMemberCount whereimport Data.Proxyimport Servant.APIimport Servant.Client hiding (Response)import Telegram.Bot.API.MakingRequestsimport Telegram.Bot.API.Types-- ** 'getChatMemberCount'type GetChatMemberCount = "getChatMemberCount"  :> RequiredQueryParam "chat_id" SomeChatId  :> Post '[JSON] (Response Integer)-- | Use this method to get the number of members in a chat.--   Returns Int on success.getChatMemberCount :: SomeChatId -- ^ Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)  -> ClientM (Response Integer)getChatMemberCount = client (Proxy @GetChatMemberCount)