peyk.platforms.telegram.types.checklist

Classes

Checklist([title, tasks, ...])

Describes a checklist.

class peyk.platforms.telegram.types.checklist.Checklist(title: str = '', tasks: List[ChecklistTask] | None = None, others_can_add_tasks: bool | None = None, others_can_mark_tasks_as_done: bool | None = None)[source]

Bases: object

Describes a checklist.

Variables:
  • title (str) – Title of the checklist

  • tasks (List[peyk.platforms.telegram.types.checklist_task.ChecklistTask] | None) – List of tasks in the checklist

  • title_entities – Special entities that appear in the checklist title

  • others_can_add_tasks (bool | None) – True, if users other than the creator of the list can add tasks to the list

  • others_can_mark_tasks_as_done (bool | None) – True, if users other than the creator of the list can mark tasks as done or not done

title: str = ''
tasks: List[ChecklistTask] | None = None
others_can_add_tasks: bool | None = None
others_can_mark_tasks_as_done: bool | None = None
classmethod from_dict(data: dict | None) Checklist | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.