Interface Checklist

Describes a checklist.

interface Checklist {
    @type: "checklist";
    can_add_tasks?: boolean;
    can_mark_tasks_as_done?: boolean;
    others_can_add_tasks?: boolean;
    others_can_mark_tasks_as_done?: boolean;
    tasks: ChecklistTask[];
    title: FormattedText;
}

Properties

@type: "checklist"
can_add_tasks?: boolean

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

can_mark_tasks_as_done?: boolean

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

others_can_add_tasks?: boolean

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

others_can_mark_tasks_as_done?: boolean

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".

tasks: ChecklistTask[]

List of tasks in the checklist.

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