InputChecklistTask

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

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.

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

id[source]

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

Type:

int

text[source]

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

Type:

str

parse_mode[source]

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

Type:

str

text_entities[source]

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.

Type:

Sequence[telegram.MessageEntity]