1
0
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:
Badiboy 2022-04-24 23:42:51 +03:00 committed by GitHub
commit 88a76c0a15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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