Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChatAdministratorRights fix #275

Merged
merged 1 commit into from
Apr 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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