Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data RestrictChatMemberRequest = RestrictChatMemberRequest {}
- type RestrictChatMember = "restrictChatMember" :> (ReqBody '[JSON] RestrictChatMemberRequest :> Post '[JSON] (Response Bool))
- restrictChatMember :: RestrictChatMemberRequest -> ClientM (Response Bool)
restrictChatMember
data RestrictChatMemberRequest Source #
Request parameters for restrictChatMember
.
RestrictChatMemberRequest | |
|
Instances
type RestrictChatMember = "restrictChatMember" :> (ReqBody '[JSON] RestrictChatMemberRequest :> Post '[JSON] (Response Bool)) Source #
restrictChatMember :: RestrictChatMemberRequest -> ClientM (Response Bool) Source #
Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate administrator rights. Pass True for all permissions to lift restrictions from a user. Returns True on success.