Skip to content

Commit

Permalink
Merge pull request #275 from mircoianese/master
Browse files Browse the repository at this point in the history
ChatAdministratorRights fix
  • Loading branch information
pengrad committed Apr 28, 2022
2 parents 8d576bc + 317b7e6 commit 1a956f0
Showing 1 changed file with 49 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,55 @@ public Boolean canPinMessages() {
return can_pin_messages;
}

public ChatAdministratorRights canManageChat(boolean canManageChat) {
this.can_manage_chat = canManageChat;
return this;
}

public ChatAdministratorRights canDeleteMessages(boolean canDeleteMessages) {
this.can_delete_messages = canDeleteMessages;
return this;
}

public ChatAdministratorRights canManageVideoChats(boolean canManageVideoChats) {
this.can_manage_video_chats = canManageVideoChats;
return this;
}

public ChatAdministratorRights canRestringMembers(boolean canRestrictMembers) {
this.can_restrict_members = canRestrictMembers;
return this;
}

public ChatAdministratorRights canPromoteMembers(boolean canPromoteMembers) {
this.can_promote_members = canPromoteMembers;
return this;
}

public ChatAdministratorRights canChangeInfo(boolean canChangeInfo) {
this.can_change_info = canChangeInfo;
return this;
}

public ChatAdministratorRights canInviteUsers(boolean canInviteUsers) {
this.can_invite_users = canInviteUsers;
return this;
}

public ChatAdministratorRights canPostMessages(boolean canPostMessages) {
this.can_post_messages = canPostMessages;
return this;
}

public ChatAdministratorRights canEditMessages(boolean canEditMessages) {
this.can_edit_messages = canEditMessages;
return this;
}

public ChatAdministratorRights canPinMessages(boolean canPinMessages) {
this.can_pin_messages = canPinMessages;
return this;
}

@Override
public boolean equals(Object o) {
Expand Down

0 comments on commit 1a956f0

Please sign in to comment.