@@ -760,7 +760,7 @@ class ChatFullInfo(JsonDeserializable):
760760
761761 :param paid_message_star_count: Optional. The number of Telegram Stars a general user have to pay to send a message to the chat
762762 :type paid_message_star_count: :obj:`int`
763-
763+
764764 :param first_profile_audio: Optional. For private chats, the first audio added to the profile of the user
765765 :type first_profile_audio: :class:`telebot.types.Audio`
766766
@@ -13195,6 +13195,14 @@ def __init__(self, model_custom_emoji_id: str, symbol_custom_emoji_id: str,
1319513195 self.light_theme_other_colors: List[int] = light_theme_other_colors
1319613196 self.dark_theme_main_color: int = dark_theme_main_color
1319713197 self.dark_theme_other_colors: List[int] = dark_theme_other_colors
13198+
13199+ @classmethod
13200+ def de_json(cls, json_string):
13201+ if json_string is None: return None
13202+ obj = cls.check_json(json_string)
13203+ return cls(**obj)
13204+
13205+
1319813206class DirectMessagesTopic(JsonDeserializable):
1319913207 """
1320013208 Describes a topic of a direct messages chat.
@@ -13555,15 +13563,15 @@ class ChatOwnerLeft(JsonDeserializable):
1355513563 """
1355613564 def __init__(self, new_owner: Optional[User] = None, **kwargs):
1355713565 self.new_owner: Optional[User] = new_owner
13558-
13566+
1355913567 @classmethod
1356013568 def de_json(cls, json_string):
1356113569 if json_string is None: return None
1356213570 obj = cls.check_json(json_string)
1356313571 if 'new_owner' in obj:
1356413572 obj['new_owner'] = User.de_json(obj['new_owner'])
1356513573 return cls(**obj)
13566-
13574+
1356713575class ChatOwnerChanged(JsonDeserializable):
1356813576 """
1356913577 Describes a service message about an ownership change in the chat.
@@ -13585,7 +13593,7 @@ def de_json(cls, json_string):
1358513593 obj = cls.check_json(json_string)
1358613594 obj['new_owner'] = User.de_json(obj['new_owner'])
1358713595 return cls(**obj)
13588-
13596+
1358913597class VideoQuality(JsonDeserializable):
1359013598 """
1359113599 This object represents a video file of a specific quality.
@@ -13627,7 +13635,7 @@ def de_json(cls, json_string):
1362713635 if json_string is None: return None
1362813636 obj = cls.check_json(json_string)
1362913637 return cls(**obj)
13630-
13638+
1363113639
1363213640class UserProfileAudios(JsonDeserializable):
1363313641 """
@@ -13654,4 +13662,3 @@ def de_json(cls, json_string):
1365413662 obj = cls.check_json(json_string)
1365513663 obj['audios'] = [Audio.de_json(audio) for audio in obj['audios']]
1365613664 return cls(**obj)
13657-
0 commit comments