1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Mistake in ChatAdministratorRights

This commit is contained in:
Badiboy 2022-04-24 23:41:08 +03:00
parent b43b636ba0
commit e1dc6d7beb

View File

@ -3076,11 +3076,11 @@ class ChatAdministratorRights(JsonDeserializable, JsonSerializable):
'can_change_info': self.can_change_info, 'can_change_info': self.can_change_info,
'can_invite_users': self.can_invite_users, '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 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 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 json_dict['can_pin_messages'] = self.can_pin_messages
return json_dict return json_dict