Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data PromoteChatMemberRequest = PromoteChatMemberRequest {
- promoteChatMemberChatId :: SomeChatId
- promoteChatMemberUserId :: UserId
- promoteChatMemberIsAnonymous :: Maybe Bool
- promoteChatMemberCanManageChat :: Maybe Bool
- promoteChatMemberCanPostMessages :: Maybe Bool
- promoteChatMemberCanEditMessages :: Maybe Bool
- promoteChatMemberCanDeleteMessages :: Maybe Bool
- promoteChatMemberCanManageVideoChats :: Maybe Bool
- promoteChatMemberCanRestrictMembers :: Maybe Bool
- promoteChatMemberCanPromoteMembers :: Maybe Bool
- promoteChatMemberCanChangeInfo :: Maybe Bool
- promoteChatMemberCanInviteUsers :: Maybe Bool
- promoteChatMemberCanPinMessages :: Maybe Bool
- promoteChatMemberCanManageTopics :: Maybe Bool
- type PromoteChatMember = "promoteChatMember" :> (ReqBody '[JSON] PromoteChatMemberRequest :> Post '[JSON] (Response Bool))
- promoteChatMember :: PromoteChatMemberRequest -> ClientM (Response Bool)
promoteChatMember
data PromoteChatMemberRequest Source #
Request parameters for promoteChatMember
.
PromoteChatMemberRequest | |
|
Instances
type PromoteChatMember = "promoteChatMember" :> (ReqBody '[JSON] PromoteChatMemberRequest :> Post '[JSON] (Response Bool)) Source #
promoteChatMember :: PromoteChatMemberRequest -> ClientM (Response Bool) Source #
Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Pass False for all boolean parameters to demote a user. Returns True on success.