@@ -968,6 +968,9 @@ class Message(JsonDeserializable):
968968 :param reply_to_story: Optional. For replies to a story, the original story
969969 :type reply_to_story: :class:`telebot.types.Story`
970970
971+ :param reply_to_checklist_task_id: Optional. Identifier of the specific checklist task that is being replied to
972+ :type reply_to_checklist_task_id: :obj:`str`
973+
971974 :param via_bot: Optional. Bot through which the message was sent
972975 :type via_bot: :class:`telebot.types.User`
973976
@@ -1484,6 +1487,8 @@ def de_json(cls, json_string):
14841487 if 'direct_message_price_changed' in obj:
14851488 opts['direct_message_price_changed'] = DirectMessagePriceChanged.de_json(obj['direct_message_price_changed'])
14861489 content_type = 'direct_message_price_changed'
1490+ if 'reply_to_checklist_task_id' in obj:
1491+ opts['reply_to_checklist_task_id'] = obj['reply_to_checklist_task_id']
14871492
14881493 return cls(message_id, from_user, date, chat, content_type, opts, json_string)
14891494
@@ -1610,6 +1615,7 @@ def __init__(self, message_id, from_user, date, chat, content_type, options, jso
16101615 self.checklist_tasks_done: Optional[ChecklistTasksDone] = None
16111616 self.checklist_tasks_added: Optional[List[ChecklistTasksAdded]] = None
16121617 self.direct_message_price_changed: Optional[DirectMessagePriceChanged] = None
1618+ self.reply_to_checklist_task_id: Optional[int] = None
16131619
16141620 for key in options:
16151621 setattr(self, key, options[key])
@@ -9390,6 +9396,9 @@ class ReplyParameters(JsonDeserializable, Dictionaryable, JsonSerializable):
93909396 :param quote_position: Optional. Position of the quote in the original message in UTF-16 code units
93919397 :type quote_position: :obj:`int`
93929398
9399+ :param checklist_task_id: Optional. Optional. Identifier of the specific checklist task to be replied to
9400+ :type checklist_task_id: :obj:`int`
9401+
93939402 :return: Instance of the class
93949403 :rtype: :class:`ReplyParameters`
93959404 """
@@ -9405,14 +9414,15 @@ def de_json(cls, json_string):
94059414 def __init__(self, message_id: int, chat_id: Optional[Union[int, str]] = None,
94069415 allow_sending_without_reply: Optional[bool] = None, quote: Optional[str] = None,
94079416 quote_parse_mode: Optional[str] = None, quote_entities: Optional[List[MessageEntity]] = None,
9408- quote_position: Optional[int] = None, **kwargs) -> None:
9417+ quote_position: Optional[int] = None, checklist_task_id: Optional[int] = None, **kwargs) -> None:
94099418 self.message_id: int = message_id
94109419 self.chat_id: Optional[Union[int, str]] = chat_id
94119420 self.allow_sending_without_reply: Optional[bool] = allow_sending_without_reply
94129421 self.quote: Optional[str] = quote
94139422 self.quote_parse_mode: Optional[str] = quote_parse_mode
94149423 self.quote_entities: Optional[List[MessageEntity]] = quote_entities
94159424 self.quote_position: Optional[int] = quote_position
9425+ self.checklist_task_id: Optional[int] = checklist_task_id
94169426
94179427 def to_dict(self) -> dict:
94189428 json_dict = {
@@ -9430,6 +9440,8 @@ def to_dict(self) -> dict:
94309440 json_dict['quote_entities'] = [entity.to_dict() for entity in self.quote_entities]
94319441 if self.quote_position is not None:
94329442 json_dict['quote_position'] = self.quote_position
9443+ if self.checklist_task_id is not None:
9444+ json_dict['checklist_task_id'] = self.checklist_task_id
94339445 return json_dict
94349446
94359447 def to_json(self) -> str:
0 commit comments