@@ -1031,6 +1031,9 @@ class Message(JsonDeserializable):
10311031 :param reply_to_checklist_task_id: Optional. Identifier of the specific checklist task that is being replied to
10321032 :type reply_to_checklist_task_id: :obj:`str`
10331033
1034+ :param reply_to_poll_option_id: Optional. Persistent identifier of the specific poll option that is being replied to
1035+ :type reply_to_poll_option_id: :obj:`str`
1036+
10341037 :param via_bot: Optional. Bot through which the message was sent
10351038 :type via_bot: :class:`telebot.types.User`
10361039
@@ -1633,6 +1636,8 @@ def de_json(cls, json_string):
16331636 if 'poll_option_deleted' in obj:
16341637 opts['poll_option_deleted'] = PollOptionDeleted.de_json(obj['poll_option_deleted'])
16351638 content_type = 'poll_option_deleted'
1639+ if 'reply_to_poll_option_id' in obj:
1640+ opts['reply_to_poll_option_id'] = obj['reply_to_poll_option_id']
16361641
16371642 return cls(message_id, from_user, date, chat, content_type, opts, json_string)
16381643
@@ -1775,6 +1780,7 @@ def __init__(self, message_id, from_user, date, chat, content_type, options, jso
17751780 self.managed_bot_created: Optional[ManagedBotCreated] = None
17761781 self.poll_option_added: Optional[PollOptionAdded] = None
17771782 self.poll_option_deleted: Optional[PollOptionDeleted] = None
1783+ self.reply_to_poll_option_id: Optional[int] = None
17781784
17791785 for key in options:
17801786 setattr(self, key, options[key])
0 commit comments