File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
library/src/main/java/com/pengrad/telegrambot/model Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,55 @@ public Boolean canPinMessages() {
6767 return can_pin_messages ;
6868 }
6969
70+ public ChatAdministratorRights canManageChat (boolean canManageChat ) {
71+ this .can_manage_chat = canManageChat ;
72+ return this ;
73+ }
74+
75+ public ChatAdministratorRights canDeleteMessages (boolean canDeleteMessages ) {
76+ this .can_delete_messages = canDeleteMessages ;
77+ return this ;
78+ }
79+
80+ public ChatAdministratorRights canManageVideoChats (boolean canManageVideoChats ) {
81+ this .can_manage_video_chats = canManageVideoChats ;
82+ return this ;
83+ }
84+
85+ public ChatAdministratorRights canRestringMembers (boolean canRestrictMembers ) {
86+ this .can_restrict_members = canRestrictMembers ;
87+ return this ;
88+ }
89+
90+ public ChatAdministratorRights canPromoteMembers (boolean canPromoteMembers ) {
91+ this .can_promote_members = canPromoteMembers ;
92+ return this ;
93+ }
94+
95+ public ChatAdministratorRights canChangeInfo (boolean canChangeInfo ) {
96+ this .can_change_info = canChangeInfo ;
97+ return this ;
98+ }
99+
100+ public ChatAdministratorRights canInviteUsers (boolean canInviteUsers ) {
101+ this .can_invite_users = canInviteUsers ;
102+ return this ;
103+ }
104+
105+ public ChatAdministratorRights canPostMessages (boolean canPostMessages ) {
106+ this .can_post_messages = canPostMessages ;
107+ return this ;
108+ }
109+
110+ public ChatAdministratorRights canEditMessages (boolean canEditMessages ) {
111+ this .can_edit_messages = canEditMessages ;
112+ return this ;
113+ }
114+
115+ public ChatAdministratorRights canPinMessages (boolean canPinMessages ) {
116+ this .can_pin_messages = canPinMessages ;
117+ return this ;
118+ }
70119
71120 @ Override
72121 public boolean equals (Object o ) {
You can’t perform that action at this time.
0 commit comments