Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type ApproveChatJoinRequest = "approveChatJoinRequest" :> (RequiredQueryParam "chat_id" SomeChatId :> (RequiredQueryParam "user_id" UserId :> Post '[JSON] (Response Bool)))
- approveChatJoinRequest :: SomeChatId -> UserId -> ClientM (Response Bool)
approveChatJoinRequest
type ApproveChatJoinRequest = "approveChatJoinRequest" :> (RequiredQueryParam "chat_id" SomeChatId :> (RequiredQueryParam "user_id" UserId :> Post '[JSON] (Response Bool))) Source #
approveChatJoinRequest Source #
:: SomeChatId | Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) |
-> UserId | Unique identifier of the target user |
-> ClientM (Response Bool) |
Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success.