InputChecklist¶
- class telegram.InputChecklist(title, tasks, parse_mode=None, title_entities=None, others_can_add_tasks=None, others_can_mark_tasks_as_done=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectDescribes a checklist to create.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal if their
tasksis equal.Added in version 22.3.
- Parameters:
title (
str) – Title of the checklist;1-255characters after entities parsing.parse_mode (
str, optional) – Mode for parsing entities. Seetelegram.constants.ParseModeand formatting options for more details.title_entities (Sequence[
telegram.MessageEntity], optional) – List of special entities that appear in the title, which can be specified instead ofparse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed.tasks (Sequence[
telegram.InputChecklistTask]) – List of1-30tasks in the checklist.others_can_add_tasks (
bool, optional) – PassTrueif other users can add tasks to the checklist.others_can_mark_tasks_as_done (
bool, optional) – PassTrueif other users can mark tasks as done or not done in the checklist.
- parse_mode[source]¶
Optional. Mode for parsing entities. See
telegram.constants.ParseModeand formatting options for more details.- Type:
str
- title_entities[source]¶
Optional. List of special entities that appear in the title, 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]
- tasks[source]¶
List of
1-30tasks in the checklist.- Type:
Sequence[
telegram.InputChecklistTask]