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.
Available In
Added in version 22.3.
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.
Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist.
Type: text[source]¶Text of the task; 1-100 characters after entities parsing.
Type: parse_mode[source]¶Optional. Mode for parsing entities. See telegram.constants.ParseMode and formatting options for more details.
Type: 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, custom_emoji, and date_time entities are allowed.
Type:Sequence[telegram.MessageEntity]