Skip to content

Checklist

Type · TDLib 1.8.67 · d1085f9c

Describes a checklist

Checklist(
  title: FormattedText,
  tasks: list of ChecklistTask,
  others_can_add_tasks: Bool,
  can_add_tasks: Bool,
  others_can_mark_tasks_as_done: Bool,
  can_mark_tasks_as_done: Bool
) → Checklist

title

FormattedText

Title of the checklist; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities

tasks

list of ChecklistTask

List of tasks in the checklist

others_can_add_tasks

Bool

True, if users other than creator of the list can add tasks to the list

can_add_tasks

Bool

True, if the current user can add tasks to the list if they have Telegram Premium subscription

others_can_mark_tasks_as_done

Bool

True, if users other than creator of the list can mark tasks as done or not done. If true, then the checklist is called "group checklist"

can_mark_tasks_as_done

Bool

True, if the current user can mark tasks as done or not done if they have Telegram Premium subscription