L idZddlmZddlmZddlmZddlmZddl m Z ddl m Z ddl mZmZGd d eZGd d eZy )zNThis module contains an objects that are related to Telegram input checklists.)Sequence)Optional) MessageEntity)TelegramObject)parse_sequence_arg) DEFAULT_NONE)JSONDictODVInputc `eZdZdZdZedfdddededeede e e d e e f fd Z xZS) 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_modetext text_entitiesN api_kwargsr rrrrct||||_||_||_t ||_|jf|_|jyNr) super__init__r rrrr _id_attrs_freeze)selfr rrrr __class__s ^/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_inputchecklist.pyrzInputChecklistTask.__init__QsM J/ )38J=8Y'' )__name__ __module__ __qualname____doc__ __slots__rintstrr rrrr r __classcell__rs@rr r so(TI%1;? *. SM    78 X&rr c~eZdZdZdZedddfdddedeede ede ee d e e d e e d e e ffd ZxZS) 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_tasksothers_can_mark_tasks_as_donertaskstitletitle_entitiesNrr+r*rr,r(r)rct||||_t||_||_t||_||_||_|jf|_ |jyr) rrr+rr*rr,r(r)rr) rr+r*rr,r(r)rrs rrzInputChecklist.__init__sb J/ 5G5N )39KN9[4H!=Z*** r)rrrr r!rr#rr r rrboolr rr$r%s@rr'r'es5nI%1<@/38<*.*+SM  !-!89  'tn (0~X&rr'N)r collections.abcrtypingrtelegram._messageentityrtelegram._telegramobjectrtelegram._utils.argumentparsingrtelegram._utils.defaultvaluertelegram._utils.typesr r r r'rrr7s=&U$13>54CCLV^Vr