@@ -754,6 +754,9 @@ class ChatFullInfo(JsonDeserializable):
754754 :param paid_message_star_count: Optional. The number of Telegram Stars a general user have to pay to send a message to the chat
755755 :type paid_message_star_count: :obj:`int`
756756
757+ :param unique_gift_colors: Optional. The color scheme based on a unique gift that must be used for the chat's name, message replies and link previews
758+ :type unique_gift_colors: :class:`telebot.types.UniqueGiftColors`
759+
757760 :return: Instance of the class
758761 :rtype: :class:`telebot.types.ChatFullInfo`
759762 """
@@ -787,6 +790,8 @@ def de_json(cls, json_string):
787790 obj['parent_chat'] = Chat.de_json(obj['parent_chat'])
788791 if 'rating' in obj:
789792 obj['rating'] = UserRating.de_json(obj['rating'])
793+ if 'unique_gift_colors' in obj:
794+ obj['unique_gift_colors'] = UniqueGiftColors.de_json(obj['unique_gift_colors'])
790795 return cls(**obj)
791796
792797 def __init__(self, id, type, title=None, username=None, first_name=None,
@@ -804,7 +809,7 @@ def __init__(self, id, type, title=None, username=None, first_name=None,
804809 business_opening_hours=None, personal_chat=None, birthdate=None,
805810 can_send_paid_media=None,
806811 accepted_gift_types=None, is_direct_messages=None, parent_chat=None, rating=None, paid_message_star_count=None,
807- **kwargs):
812+ unique_gift_colors=None, **kwargs):
808813 self.id: int = id
809814 self.type: str = type
810815 self.title: Optional[str] = title
@@ -854,6 +859,9 @@ def __init__(self, id, type, title=None, username=None, first_name=None,
854859 self.parent_chat: Optional[Chat] = parent_chat
855860 self.rating: Optional[UserRating] = rating
856861 self.paid_message_star_count: Optional[int] = paid_message_star_count
862+ self.unique_gift_colors: Optional[UniqueGiftColors] = unique_gift_colors
863+
864+
857865 @property
858866 def can_send_gift(self) -> bool:
859867 """
@@ -12808,6 +12816,9 @@ class ChecklistTask(JsonDeserializable):
1280812816 :param completed_by_user: Optional. User that completed the task; omitted if the task wasn't completed
1280912817 :type completed_by_user: :class:`User`
1281012818
12819+ :param completed_by_chat: Optional. Chat that completed the task; omitted if the task wasn't completed by a chat
12820+ :type completed_by_chat: :class:`Chat`
12821+
1281112822 :param completion_date: Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed
1281212823 :type completion_date: :obj:`int`
1281312824
@@ -12816,11 +12827,13 @@ class ChecklistTask(JsonDeserializable):
1281612827 """
1281712828 def __init__(self, id: int, text: str, text_entities: Optional[List[MessageEntity]] = None,
1281812829 completed_by_user: Optional[User] = None,
12830+ completed_by_chat: Optional[Chat] = None,
1281912831 completion_date: Optional[int] = None, **kwargs):
1282012832 self.id: int = id
1282112833 self.text: str = text
1282212834 self.text_entities: Optional[List[MessageEntity]] = text_entities
1282312835 self.completed_by_user: Optional[User] = completed_by_user
12836+ self.completed_by_chat: Optional[Chat] = completed_by_chat
1282412837 self.completion_date: Optional[int] = completion_date
1282512838
1282612839 @classmethod
@@ -12831,6 +12844,8 @@ def de_json(cls, json_string):
1283112844 obj['text_entities'] = Message.parse_entities(obj['text_entities'])
1283212845 if 'completed_by_user' in obj:
1283312846 obj['completed_by_user'] = User.de_json(obj['completed_by_user'])
12847+ if 'completed_by_chat' in obj:
12848+ obj['completed_by_chat'] = Chat.de_json(obj['completed_by_chat'])
1283412849 return cls(**obj)
1283512850
1283612851
0 commit comments