mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #1521 from Badiboy/master
Mistake in ChatAdministratorRights
This commit is contained in:
commit
88a76c0a15
@ -3076,11 +3076,11 @@ class ChatAdministratorRights(JsonDeserializable, JsonSerializable):
|
||||
'can_change_info': self.can_change_info,
|
||||
'can_invite_users': self.can_invite_users,
|
||||
}
|
||||
if 'can_post_messages' is not None:
|
||||
if self.can_post_messages is not None:
|
||||
json_dict['can_post_messages'] = self.can_post_messages
|
||||
if 'can_edit_messages' is not None:
|
||||
if self.can_edit_messages is not None:
|
||||
json_dict['can_edit_messages'] = self.can_edit_messages
|
||||
if 'can_pin_messages' is not None:
|
||||
if self.can_pin_messages is not None:
|
||||
json_dict['can_pin_messages'] = self.can_pin_messages
|
||||
return json_dict
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user