Skip to content
Back to top
View this page

# InputChecklistTask

class telegram.InputChecklistTask(id, text, parse_mode=None, text_entities=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  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 `id` is equal.

  Available In

  `telegram.InputChecklist.tasks`

  Added in version 22.3.

  Parameters:

    - id (`int`) – Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist.

    - text (`str`) – Text of the task; `1`-`100` characters after entities parsing.

    - parse_mode (`str`, optional) – Mode for parsing entities. See `telegram.constants.ParseMode` and formatting options for more details.

    - text_entities (Sequence[`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, custom_emoji, and date_time entities are allowed.

  id

    Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist.

    Type:

      `int`

  text

    Text of the task; `1`-`100` characters after entities parsing.

    Type:

      `str`

  parse_mode

    Optional. Mode for parsing entities. See `telegram.constants.ParseMode` and formatting options for more details.

    Type:

      `str`

  text_entities

    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, custom_emoji, and date_time entities are allowed.

    Type:

      Sequence[`telegram.MessageEntity`]