§
    ¨eîiÑ  ã                   óŽ   — d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZmZ  G d„ d	e¦  «        Z G d
„ de¦  «        ZdS )zNThis module contains an objects that are related to Telegram input checklists.é    )ÚSequence)ÚMessageEntity)ÚTelegramObject)Úparse_sequence_arg)ÚDEFAULT_NONE)ÚJSONDictÚODVInputc                   ól   ‡ — e Zd ZdZdZedfddœdededee         de	e
         dz  d	edz  f
ˆ fd
„Zˆ xZS )ÚInputChecklistTaska?  
    Describes a task to add to 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; must be positive and unique among all task identifiers
            currently present in the checklist.
        text (:obj:`str`):
            Text of the task;
            :tg-const:`telegram.constants.InputChecklistLimit.MIN_TEXT_LENGTH`-:tg-const:`telegram.constants.InputChecklistLimit.MAX_TEXT_LENGTH` characters after
            entities parsing.
        parse_mode (:obj:`str`, optional):
            |parse_mode|
        text_entities (Sequence[:class:`telegram.MessageEntity`], optional):
            List of special entities that appear in the text, which can be specified instead of
            parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and
            custom_emoji entities are allowed.

    Attributes:
        id (:obj:`int`):
            Unique identifier of the task; must be positive and unique among all task identifiers
            currently present in the checklist.
        text (:obj:`str`):
            Text of the task;
            :tg-const:`telegram.constants.InputChecklistLimit.MIN_TEXT_LENGTH`-:tg-const:`telegram.constants.InputChecklistLimit.MAX_TEXT_LENGTH` characters after
            entities parsing.
        parse_mode (:obj:`str`):
            Optional. |parse_mode|
        text_entities (Sequence[:class:`telegram.MessageEntity`]):
            Optional. List of special entities that appear in the text, which can be specified
            instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler,
            and custom_emoji entities are allowed.

    )ÚidÚ
parse_modeÚtextÚtext_entitiesN©Ú
api_kwargsr   r   r   r   r   c                óà   •— t          ¦   «                              |¬¦  «         || _        || _        || _        t          |¦  «        | _        | j        f| _        |                      ¦   «          d S ©Nr   )	ÚsuperÚ__init__r   r   r   r   r   Ú	_id_attrsÚ_freeze)Úselfr   r   r   r   r   Ú	__class__s         €ú\/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_inputchecklist.pyr   zInputChecklistTask.__init__P   sa   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/ØˆŒØˆŒ	Ø)3ˆŒÝ8JÈ=Ñ8YÔ8YˆÔàœ'˜ˆŒà�Š‰Œˆˆˆó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   ÚintÚstrr	   r   r   r   r   Ú__classcell__©r   s   @r   r   r      s­   ø€ € € € € ð(ð (ðT€Ið %1Ø8<ðð '+ðð ð àðð ðð ˜S”Mð	ð
   Ô.°Ñ5ðð ˜t‘Oðð ð ð ð ð ð ð ð ð r   r   c                   ó�   ‡ — e Zd ZdZdZedddfddœdedee         de	e         dee
         dz  d	edz  d
edz  dedz  fˆ fd„Zˆ xZS )ÚInputChecklistaw
  
    Describes a checklist to create.

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

    .. versionadded:: 22.3

    Args:
        title (:obj:`str`):
            Title of the checklist;
            :tg-const:`telegram.constants.InputChecklistLimit.MIN_TITLE_LENGTH`-:tg-const:`telegram.constants.InputChecklistLimit.MAX_TITLE_LENGTH` characters after
            entities parsing.
        parse_mode (:obj:`str`, optional):
            |parse_mode|
        title_entities (Sequence[:class:`telegram.MessageEntity`], optional):
            List of special entities that appear in the title, which
            can be specified instead of :paramref:`parse_mode`. Currently, only bold, italic,
            underline, strikethrough, spoiler, and custom_emoji entities are allowed.
        tasks (Sequence[:class:`telegram.InputChecklistTask`]):
            List of
            :tg-const:`telegram.constants.InputChecklistLimit.MIN_TASK_NUMBER`-:tg-const:`telegram.constants.InputChecklistLimit.MAX_TASK_NUMBER` tasks in
            the checklist.
        others_can_add_tasks (:obj:`bool`, optional):
            Pass :obj:`True` if other users can add tasks to the checklist.
        others_can_mark_tasks_as_done (:obj:`bool`, optional):
            Pass :obj:`True` if other users can mark tasks as done or not done in the checklist.

    Attributes:
        title (:obj:`str`):
            Title of the checklist;
            :tg-const:`telegram.constants.InputChecklistLimit.MIN_TITLE_LENGTH`-:tg-const:`telegram.constants.InputChecklistLimit.MAX_TITLE_LENGTH` characters after
            entities parsing.
        parse_mode (:obj:`str`):
            Optional. |parse_mode|
        title_entities (Sequence[:class:`telegram.MessageEntity`]):
            Optional. List of special entities that appear in the title, which
            can be specified instead of :paramref:`parse_mode`. Currently, only bold, italic,
            underline, strikethrough, spoiler, and custom_emoji entities are allowed.
        tasks (Sequence[:class:`telegram.InputChecklistTask`]):
            List of
            :tg-const:`telegram.constants.InputChecklistLimit.MIN_TASK_NUMBER`-:tg-const:`telegram.constants.InputChecklistLimit.MAX_TASK_NUMBER` tasks in
            the checklist.
        others_can_add_tasks (:obj:`bool`):
            Optional. Pass :obj:`True` if other users can add tasks to the checklist.
        others_can_mark_tasks_as_done (:obj:`bool`):
            Optional. Pass :obj:`True` if other users can mark tasks as done or not done in
            the checklist.

    )Úothers_can_add_tasksÚothers_can_mark_tasks_as_doner   ÚtasksÚtitleÚtitle_entitiesNr   r*   r)   r   r+   r'   r(   r   c                ó  •— t          ¦   «                              |¬¦  «         || _        t          |¦  «        | _        || _        t          |¦  «        | _        || _        || _        | j        f| _	        |  
                    ¦   «          d S r   )r   r   r*   r   r)   r   r+   r'   r(   r   r   )	r   r*   r)   r   r+   r'   r(   r   r   s	           €r   r   zInputChecklist.__init__¥   sy   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/ØˆŒ
Ý5GÈÑ5NÔ5NˆŒ
Ø)3ˆŒÝ9KÈNÑ9[Ô9[ˆÔØ1EˆÔ!Ø:WˆÔ*àœ*˜ˆŒà�Š‰Œˆˆˆr   )r   r   r   r   r    r   r"   r   r   r	   r   Úboolr   r   r#   r$   s   @r   r&   r&   d   sÕ   ø€ € € € € ð5ð 5ðn€Ið %1Ø9=Ø,0Ø59ðð '+ðð ð àðð Ð*Ô+ðð ˜S”Mð	ð
 ! Ô/°$Ñ6ðð # T™kðð (,¨d¡{ðð ˜t‘Oðð ð ð ð ð ð ð ð ð r   r&   N)r   Úcollections.abcr   Útelegram._messageentityr   Útelegram._telegramobjectr   Útelegram._utils.argumentparsingr   Útelegram._utils.defaultvaluer   Útelegram._utils.typesr   r	   r   r&   © r   r   ú<module>r5      sñ   ðð& UÐ Tà $Ð $Ð $Ð $Ð $Ð $à 1Ð 1Ð 1Ð 1Ð 1Ð 1Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø >Ð >Ð >Ð >Ð >Ð >Ø 5Ð 5Ð 5Ð 5Ð 5Ð 5Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4ðCð Cð Cð Cð C˜ñ Cô Cð CðLVð Vð Vð Vð V�^ñ Vô Vð Vð Vð Vr   