Skip to content

Commit

Permalink
Added field can_invite_users to the promoteChatMember method
Browse files Browse the repository at this point in the history
  • Loading branch information
pengrad committed Dec 7, 2017
1 parent 3599229 commit 586b8c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public PromoteChatMember canDeleteMessages(boolean canDeleteMessages) {
return add("can_delete_messages", canDeleteMessages);
}

public PromoteChatMember canInviteUsers(boolean canInviteUsers) {
return add("can_invite_users", canInviteUsers);
}

public PromoteChatMember canRestrictMembers(boolean canRestrictMembers) {
return add("can_restrict_members", canRestrictMembers);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public void promoteChatMember() {
.canPostMessages(false)
.canEditMessages(false)
.canDeleteMessages(false)
.canInviteUsers(false)
.canRestrictMembers(false)
.canPinMessages(false)
.canPromoteMembers(false));
Expand Down

0 comments on commit 586b8c1

Please sign in to comment.