+
    ÁFñjD  ã                   ó"  € R t ^ RIt^ RIHt ^ RIHtHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt ^ RIHtHtHt ^ R	IHtHt ^ R
IHtHt ^ RIHt ^ RIHt ]'       d	   ^ RIHtH t   ! R R]4      t! ! R R]4      t" ! R R]4      t# ! R R]4      t$R# )z?This module contains an objects related to Telegram checklists.N)ÚSequence)ÚTYPE_CHECKINGÚOptional)ÚChat)ÚMessageEntity)ÚTelegramObject)ÚUser)Úde_json_optionalÚde_list_optionalÚparse_sequence_arg)Úextract_tzinfo_from_defaultsÚfrom_timestamp)Úparse_message_entitiesÚparse_message_entity)ÚJSONDict)Ú	ZERO_DATE)ÚBotÚMessagec                   ó    a a€ ] tR t^'t oRtRtRRR/V3R lV 3R llllt]RV3R lV 3R lll4       tV3R lR	 lt	RV3R
 lR llt
RtVtV ;t# )ÚChecklistTaska­  
Describes a task in a checklist.

Objects of this class are comparable in terms of equality.
Two objects of this class are considered equal, if their :attr:`id` is equal.

.. versionadded:: 22.3

Args:
    id (:obj:`int`): Unique identifier of the task.
    text (:obj:`str`): Text of the task.
    text_entities (Sequence[:class:`telegram.MessageEntity`], optional): Special
        entities that appear in the task text.
    completed_by_user (:class:`telegram.User`, optional): User that completed the task; omitted
        if the task wasn't completed
    completed_by_chat (:class:`telegram.Chat`, optional): Chat that completed the task; omitted
        if the task wasn't completed by a chat

        .. versionadded:: 22.6
    completion_date (:class:`datetime.datetime`, optional): Point in time when
        the task was completed; :attr:`~telegram.constants.ZERO_DATE` if the task wasn't
        completed

        |datetime_localization|

Attributes:
    id (:obj:`int`): Unique identifier of the task.
    text (:obj:`str`): Text of the task.
    text_entities (Tuple[:class:`telegram.MessageEntity`]): Optional. Special
        entities that appear in the task text.
    completed_by_user (:class:`telegram.User`): Optional. User that completed the task; omitted
        if the task wasn't completed
    completed_by_chat (:class:`telegram.Chat`): Optional. Chat that completed the task; omitted
        if the task wasn't completed by a chat

        .. versionadded:: 22.6
    completion_date (:class:`datetime.datetime`): Optional. Point in time when
        the task was completed; :attr:`~telegram.constants.ZERO_DATE` if the task wasn't
        completed

        |datetime_localization|
NÚ
api_kwargsc                ó®   <€ V ^8„  d   QhRS[ RS[RS[S[,          R,          RS[R,          RS[P                  R,          RS[R,          RS[R,          /# )	é   ÚidÚtextÚtext_entitiesNÚcompleted_by_userÚcompletion_dateÚcompleted_by_chatr   )	ÚintÚstrr   r   r   ÚdtmÚdatetimer   r   )ÚformatÚ__classdict__s   "€ÚJ/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_checklists.pyÚ__annotate__ÚChecklistTask.__annotate__\   sp   ø€ ÷ ñ áðñ ðñ  ¡Õ.°Õ5ð	ñ
   $�;ðñ Ÿ™¨Õ,ðñ   $�;ðñ ˜t•Oñó    c               óÈ   <€ \         SV `  VR 7       Wn        W n        \	        V4      V n        W@n        W`n        WPn        V P                  3V n	        V P                  4        R# ©)r   N)ÚsuperÚ__init__r   r   r   r   r   r   r   Ú	_id_attrsÚ_freeze)	Úselfr   r   r   r   r   r   r   Ú	__class__s	   &&&&&&&$€r%   r,   ÚChecklistTask.__init__\   sT   ø€ ô 	‰Ñ JÐÔ/ØŒØŒ	Ü8JÈ=Ó8YˆÔØ.?ÔØ.?ÔØ4CÔàŸ'™'˜ˆŒà�‰Žr(   c                ó8   <€ V ^8„  d   QhRS[ RS[R,          RR/# )r   ÚdataÚbotr   Úreturnr   ©r   r   )r#   r$   s   "€r%   r&   r'   t   s&   ø€ ÷ 3ñ 3™8ð 3©(°5­/ð 3À_ñ 3r(   c                ó�  <€ V P                  V4      p\        V4      pVP                  R4      ;p^ 8X  d   \        VR&   M\	        WCR7      VR&   \        VP                  R4      \        V4      VR&   \        VP                  R4      \        V4      VR&   \        VP                  R4      \        V4      VR&   \        SV `-  WR7      # )ú,See :meth:`telegram.TelegramObject.de_json`.r   )Útzinfor   r   r   ©r3   r4   )Ú_parse_datar   Úgetr   r   r	   r   r   r
   r   r+   Úde_json)Úclsr3   r4   Ú
loc_tzinfoÚdater0   s   &&&  €r%   r=   ÚChecklistTask.de_jsons   s¿   ø€ ð �‰˜tÓ$ˆô 2°#Ó6ˆ
à—H‘HÐ.Ó/Ð/ˆD°AÔ5Ü&/ˆDÐ"Ò#ä&4°TÔ&MˆDÐ"Ñ#ä$4°T·X±XÐ>QÓ5RÔTXÐZ]Ó$^ˆÐ Ñ!Ü$4°T·X±XÐ>QÓ5RÔTXÐZ]Ó$^ˆÐ Ñ!Ü 0°·±¸/Ó1JÌMÐ[^Ó _ˆˆ_Ñä‰w‰ DˆÓ2Ð2r(   c                ó&   <€ V ^8„  d   QhRS[ RS[/# ©r   Úentityr5   ©r   r    )r#   r$   s   "€r%   r&   r'   †   s   ø€ ÷ 7ñ 7¡=ð 7±Sñ 7r(   c                ó.   € \        V P                  V4      # )aB  Returns the text in :attr:`text`
from a given :class:`telegram.MessageEntity` of :attr:`text_entities`.

Note:
    This method is present because Telegram calculates the offset and length in
    UTF-16 codepoint pairs, which some versions of Python don't handle automatically.
    (That is, you can't just slice ``ChecklistTask.text`` with the offset and length.)

Args:
    entity (:class:`telegram.MessageEntity`): The entity to extract the text from. It must
        be an entity that belongs to :attr:`text_entities`.

Returns:
    :obj:`str`: The text of the given entity.
)r   r   ©r/   rD   s   &&r%   Úparse_entityÚChecklistTask.parse_entity†   s   € ô  $ D§I¡I¨vÓ6Ð6r(   c                óZ   <€ V ^8„  d   QhRS[ S[,          R,          RS[S[S[3,          /# ©r   ÚtypesNr5   ©Úlistr    Údictr   )r#   r$   s   "€r%   r&   r'   ˜   s3   ø€ ÷ Lñ L¡D©¥I°Õ$4ð LÁÁ]ÑTWÐEWÕ@Xñ Lr(   c                óD   € \        V P                  V P                  V4      # )a�  
Returns a :obj:`dict` that maps :class:`telegram.MessageEntity` to :obj:`str`.
It contains entities from this checklist task filtered by their ``type`` attribute as
the key, and the text that each entity belongs to as the value of the :obj:`dict`.

Note:
    This method should always be used instead of the :attr:`text_entities`
    attribute, since it calculates the correct substring from the message text based on
    UTF-16 codepoints. See :attr:`parse_entity` for more info.

Args:
    types (list[:obj:`str`], optional): List of ``MessageEntity`` types as strings. If the
            ``type`` attribute of an entity is contained in this list, it will be returned.
            Defaults to :attr:`telegram.MessageEntity.ALL_TYPES`.

Returns:
    dict[:class:`telegram.MessageEntity`, :obj:`str`]: A dictionary of entities mapped to
    the text that belongs to them, calculated based on UTF-16 codepoints.
)r   r   r   ©r/   rL   s   &&r%   Úparse_entitiesÚChecklistTask.parse_entities˜   s   € ô( & d§i¡i°×1CÑ1CÀUÓKÐKr(   )r-   r   r   r   r   r   r   )r   r   r   r   r   r   )NNNN©N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r,   Úclassmethodr=   rH   rR   Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r0   r$   s   @@r%   r   r   '   s[   ù‡ € ñ)ðV€Iñð '+÷ö ð. ÷3ô 3ó ð3÷$7ð 7÷$L÷ Lò Lr(   r   c                   ó    a a€ ] tR t^¯t oRtRtRRR/V3R lV 3R llllt]RV3R lV 3R lll4       tV3R lR	 lt	RV3R
 lR llt
RtVtV ;t# )Ú	Checklista@  
Describes a checklist.

Objects of this class are comparable in terms of equality.
Two objects of this class are considered equal, if all their :attr:`tasks` are equal.

.. versionadded:: 22.3

Args:
    title (:obj:`str`): Title of the checklist.
    title_entities (Sequence[:class:`telegram.MessageEntity`], optional): Special
        entities that appear in the checklist title.
    tasks (Sequence[:class:`telegram.ChecklistTask`]): List of tasks in the checklist.
    others_can_add_tasks (:obj:`bool`, optional): :obj:`True` if users other than the creator
        of the list can add tasks to the list
    others_can_mark_tasks_as_done (:obj:`bool`, optional): :obj:`True` if users other than the
        creator of the list can mark tasks as done or not done

Attributes:
    title (:obj:`str`): Title of the checklist.
    title_entities (Tuple[:class:`telegram.MessageEntity`]): Optional. Special
        entities that appear in the checklist title.
    tasks (Tuple[:class:`telegram.ChecklistTask`]): List of tasks in the checklist.
    others_can_add_tasks (:obj:`bool`): Optional. :obj:`True` if users other than the creator
        of the list can add tasks to the list
    others_can_mark_tasks_as_done (:obj:`bool`): Optional. :obj:`True` if users other than the
        creator of the list can mark tasks as done or not done
Nr   c                ó–   <€ V ^8„  d   QhRS[ RS[S[,          RS[S[,          R,          RS[R,          RS[R,          RS[R,          /# )r   ÚtitleÚtasksÚtitle_entitiesNÚothers_can_add_tasksÚothers_can_mark_tasks_as_doner   )r    r   r   r   Úboolr   )r#   r$   s   "€r%   r&   ÚChecklist.__annotate__Õ   sb   ø€ ÷ ñ áðñ ™Õ&ðñ !¡Õ/°$Õ6ð	ñ
 # T�kðñ (,¨d¥{ðñ ˜t•Oñr(   c               óÐ   <€ \         SV `  VR 7       Wn        \        V4      V n        \        V4      V n        W@n        WPn        V P
                  3V n        V P                  4        R# r*   )
r+   r,   rd   r   rf   re   rg   rh   r-   r.   )r/   rd   re   rf   rg   rh   r   r0   s   &&&&&&$€r%   r,   ÚChecklist.__init__Õ   sU   ø€ ô 	‰Ñ JÐÔ/ØŒ
Ü9KÈNÓ9[ˆÔÜ0BÀ5Ó0IˆŒ
Ø1EÔ!Ø:WÔ*àŸ*™*˜ˆŒà�‰Žr(   c                ó8   <€ V ^8„  d   QhRS[ RS[R,          RR/# )r   r3   r4   r   r5   rb   r6   )r#   r$   s   "€r%   r&   rj   ë   s&   ø€ ÷ 3ñ 3™8ð 3©(°5­/ð 3À[ñ 3r(   c                óÒ   <€ V P                  V4      p\        VP                  R4      \        V4      VR&   \        VP                  R4      \        V4      VR&   \
        SV `  WR7      # )r8   rf   re   r:   )r;   r
   r<   r   r   r+   r=   )r>   r3   r4   r0   s   &&&€r%   r=   ÚChecklist.de_jsonê   s^   ø€ ð �‰˜tÓ$ˆä!1°$·(±(Ð;KÓ2LÌmÐ]`Ó!aˆÐÑÜ(¨¯©°'Ó):¼MÈ3ÓOˆˆW‰ä‰w‰ DˆÓ2Ð2r(   c                ó&   <€ V ^8„  d   QhRS[ RS[/# rC   rE   )r#   r$   s   "€r%   r&   rj   ô   s   ø€ ÷ 8ñ 8¡=ð 8±Sñ 8r(   c                ó.   € \        V P                  V4      # )a<  Returns the text in :attr:`title`
from a given :class:`telegram.MessageEntity` of :attr:`title_entities`.

Note:
    This method is present because Telegram calculates the offset and length in
    UTF-16 codepoint pairs, which some versions of Python don't handle automatically.
    (That is, you can't just slice :attr:`title` with the offset and length.)

Args:
    entity (:class:`telegram.MessageEntity`): The entity to extract the text from. It must
        be an entity that belongs to :attr:`title_entities`.

Returns:
    :obj:`str`: The text of the given entity.
)r   rd   rG   s   &&r%   rH   ÚChecklist.parse_entityô   s   € ô  $ D§J¡J°Ó7Ð7r(   c                óZ   <€ V ^8„  d   QhRS[ S[,          R,          RS[S[S[3,          /# rK   rM   )r#   r$   s   "€r%   r&   rj     s3   ø€ ÷ Nñ N¡D©¥I°Õ$4ð NÁÁ]ÑTWÐEWÕ@Xñ Nr(   c                óD   € \        V P                  V P                  V4      # )a”  
Returns a :obj:`dict` that maps :class:`telegram.MessageEntity` to :obj:`str`.
It contains entities from this checklist's title filtered by their ``type`` attribute as
the key, and the text that each entity belongs to as the value of the :obj:`dict`.

Note:
    This method should always be used instead of the :attr:`title_entities`
    attribute, since it calculates the correct substring from the message text based on
    UTF-16 codepoints. See :attr:`parse_entity` for more info.

Args:
    types (list[:obj:`str`], optional): List of ``MessageEntity`` types as strings. If the
            ``type`` attribute of an entity is contained in this list, it will be returned.
            Defaults to :attr:`telegram.MessageEntity.ALL_TYPES`.

Returns:
    dict[:class:`telegram.MessageEntity`, :obj:`str`]: A dictionary of entities mapped to
    the text that belongs to them, calculated based on UTF-16 codepoints.
)r   rd   rf   rQ   s   &&r%   rR   ÚChecklist.parse_entities  s   € ô( & d§j¡j°$×2EÑ2EÀuÓMÐMr(   )r-   rg   rh   re   rd   rf   )rg   rh   re   rd   rf   ©NNNrT   rU   r`   s   @@r%   rb   rb   ¯   sZ   ù‡ € ñð:€Iñð '+÷ö ð* ÷3ô 3ó ð3÷8ð 8÷$N÷ Nò Nr(   rb   c                   óx   a a€ ] tR tRt oRtR
tRRR/V3R lV 3R llllt]RV3R lV 3R lll4       tR	t	Vt
V ;t# )ÚChecklistTasksDonei  a·  
Describes a service message about checklist tasks marked as done or not done.

Objects of this class are comparable in terms of equality.
Two objects of this class are considered equal, if their :attr:`marked_as_done_task_ids` and
:attr:`marked_as_not_done_task_ids` are equal.

.. versionadded:: 22.3

Args:
    checklist_message (:class:`telegram.Message`, optional): Message containing the checklist
        whose tasks were marked as done or not done. Note that the ~:class:`telegram.Message`
        object in this field will not contain the :attr:`~telegram.Message.reply_to_message`
        field even if it itself is a reply.
    marked_as_done_task_ids (Sequence[:obj:`int`], optional): Identifiers of the tasks that
        were marked as done
    marked_as_not_done_task_ids (Sequence[:obj:`int`], optional): Identifiers of the tasks that
        were marked as not done

Attributes:
    checklist_message (:class:`telegram.Message`): Optional. Message containing the checklist
        whose tasks were marked as done or not done. Note that the ~:class:`telegram.Message`
        object in this field will not contain the :attr:`~telegram.Message.reply_to_message`
        field even if it itself is a reply.
    marked_as_done_task_ids (Tuple[:obj:`int`]): Optional. Identifiers of the tasks that were
        marked as done
    marked_as_not_done_task_ids (Tuple[:obj:`int`]): Optional. Identifiers of the tasks that
        were marked as not done
Nr   c          	      óŠ   <€ V ^8„  d   QhRS[ R,          RS[S[,          R,          RS[S[,          R,          RS[R,          /# )r   Úchecklist_messager   Úmarked_as_done_task_idsNÚmarked_as_not_done_task_idsr   )r   r   r   r   )r#   r$   s   "€r%   r&   ÚChecklistTasksDone.__annotate__B  sN   ø€ ÷ ñ á# IÕ.ðñ "*©#¥°Õ!5ðñ &.©c¥]°TÕ%9ð	ñ ˜t•Oñr(   c               óÎ   <€ \         SV `  VR 7       Wn        \        V4      V n        \        V4      V n        V P                  V P
                  3V n        V P                  4        R# r*   )r+   r,   rz   r   r{   r|   r-   r.   )r/   rz   r{   r|   r   r0   s   &&&&$€r%   r,   ÚChecklistTasksDone.__init__B  s\   ø€ ô 	‰Ñ JÐÔ/Ø1BÔÜ8JÐKbÓ8cˆÔ$Ü<NØ'ó=
ˆÔ(ð ×6Ñ6¸×8XÑ8XÐYˆŒà�‰Žr(   c                ó8   <€ V ^8„  d   QhRS[ RS[R,          RR/# )r   r3   r4   r   r5   rx   r6   )r#   r$   s   "€r%   r&   r}   V  s'   ø€ ÷ 	3ñ 	3™8ð 	3©(°5­/ð 	3ÐEYñ 	3r(   c                óŽ   <€ V P                  V4      p^ RIHp \        VP	                  R4      W24      VR&   \
        SV `  WR7      # )r8   ©r   rz   r:   )r;   Útelegramr   r	   r<   r+   r=   ©r>   r3   r4   r   r0   s   &&& €r%   r=   ÚChecklistTasksDone.de_jsonU  sF   ø€ ð �‰˜tÓ$ˆõ 	%ä$4°T·X±XÐ>QÓ5RÐT[Ó$aˆÐ Ñ!ä‰w‰ DˆÓ2Ð2r(   )r-   rz   r{   r|   )rz   r{   r|   rv   rT   ©rV   rW   rX   rY   rZ   r[   r,   r\   r=   r]   r^   r_   r`   s   @@r%   rx   rx     sC   ù‡ € ñð<€Iñð '+÷ö ð& ÷	3ô 	3ó ÷	3ð 	3r(   rx   c                   óx   a a€ ] tR tRt oRtR
tRRR/V3R lV 3R llllt]RV3R lV 3R lll4       tR	t	Vt
V ;t# )ÚChecklistTasksAddedib  a  
Describes a service message about tasks added to a checklist.

Objects of this class are comparable in terms of equality.
Two objects of this class are considered equal, if their :attr:`tasks` are equal.

.. versionadded:: 22.3

Args:
    checklist_message (:class:`telegram.Message`, optional): Message containing the checklist
        to which tasks were added. Note that the ~:class:`telegram.Message`
        object in this field will not contain the :attr:`~telegram.Message.reply_to_message`
        field even if it itself is a reply.
    tasks (Sequence[:class:`telegram.ChecklistTask`]): List of tasks added to the checklist

Attributes:
    checklist_message (:class:`telegram.Message`): Optional. Message containing the checklist
        to which tasks were added. Note that the ~:class:`telegram.Message`
        object in this field will not contain the :attr:`~telegram.Message.reply_to_message`
        field even if it itself is a reply.
    tasks (Tuple[:class:`telegram.ChecklistTask`]): List of tasks added to the checklist
Nr   c                óX   <€ V ^8„  d   QhRS[ S[,          RS[R,          RS[R,          /# )r   re   rz   r   r   N)r   r   r   r   )r#   r$   s   "€r%   r&   Ú ChecklistTasksAdded.__annotate__|  s7   ø€ ÷ ñ á™Õ&ðñ $ IÕ.ðñ
 ˜t•Oñr(   c               ó˜   <€ \         SV `  VR 7       W n        \        V4      V n        V P                  3V n        V P                  4        R# r*   )r+   r,   rz   r   re   r-   r.   )r/   re   rz   r   r0   s   &&&$€r%   r,   ÚChecklistTasksAdded.__init__|  s=   ø€ ô 	‰Ñ JÐÔ/Ø1BÔÜ0BÀ5Ó0IˆŒ
àŸ*™*˜ˆŒà�‰Žr(   c                ó8   <€ V ^8„  d   QhRS[ RS[R,          RR/# )r   r3   r4   r   r5   rˆ   r6   )r#   r$   s   "€r%   r&   rŠ   Œ  s'   ø€ ÷ 
3ñ 
3™8ð 
3©(°5­/ð 
3ÐEZñ 
3r(   c                óà   <€ V P                  V4      p^ RIHp \        VP	                  R4      W24      VR&   \
        P                  VP	                  R. 4      V4      VR&   \        SV `!  WR7      # )r8   r‚   rz   re   r:   )	r;   rƒ   r   r	   r<   r   Úde_listr+   r=   r„   s   &&& €r%   r=   ÚChecklistTasksAdded.de_json‹  sg   ø€ ð �‰˜tÓ$ˆõ 	%ä$4°T·X±XÐ>QÓ5RÐT[Ó$aˆÐ Ñ!Ü%×-Ñ-¨d¯h©h°wÀÓ.CÀSÓIˆˆW‰ä‰w‰ DˆÓ2Ð2r(   )r-   rz   re   )rz   re   rT   r†   r`   s   @@r%   rˆ   rˆ   b  sC   ù‡ € ñð. /€Iñð
 '+÷ö ð ÷
3ô 
3ó ÷
3ð 
3r(   rˆ   )%rZ   r"   r!   Úcollections.abcr   Útypingr   r   Útelegram._chatr   Útelegram._messageentityr   Útelegram._telegramobjectr   Útelegram._userr   Útelegram._utils.argumentparsingr	   r
   r   Útelegram._utils.datetimer   r   Útelegram._utils.entitiesr   r   Útelegram._utils.typesr   Útelegram.constantsr   rƒ   r   r   r   rb   rx   rˆ   © r(   r%   Ú<module>r�      su   ðñ& Fã Ý $ß *å Ý 1Ý 3Ý ß bÑ bß Qß QÝ *Ý (çß%ôEL�Nô ELôPkN�ô kNô\B3˜ô B3ôJ43˜.ö 43r(   