InputChecklistTask¶
- class telegram.InputChecklistTask(id, text, parse_mode=None, text_entities=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectDescribes 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
idis equal.Available In
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-100characters after entities parsing.parse_mode (
str, optional) – Mode for parsing entities. Seetelegram.constants.ParseModeand 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:
- parse_mode[source]¶
Optional. Mode for parsing entities. See
telegram.constants.ParseModeand 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, and custom_emoji entities are allowed.
- Type:
Sequence[
telegram.MessageEntity]