Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SetChatPermissionsRequest = SetChatPermissionsRequest {}
- type SetChatPermissions = "setChatPermissions" :> (ReqBody '[JSON] SetChatPermissionsRequest :> Post '[JSON] (Response Bool))
- setChatPermissions :: SetChatPermissionsRequest -> ClientM (Response Bool)
- defSetChatPermissions :: SomeChatId -> ChatPermissions -> SetChatPermissionsRequest
setChatPermissions
data SetChatPermissionsRequest Source #
Request parameters for setChatPermissions
.
SetChatPermissionsRequest | |
|
Instances
type SetChatPermissions = "setChatPermissions" :> (ReqBody '[JSON] SetChatPermissionsRequest :> Post '[JSON] (Response Bool)) Source #
setChatPermissions :: SetChatPermissionsRequest -> ClientM (Response Bool) Source #
Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members administrator rights. Returns True on success.