telegramsjs
    Preparing search index...

    Class ChecklistTasksDone

    Hierarchy (View Summary)

    • Base
      • ChecklistTasksDone
    Index

    Constructors

    Properties

    checklistMessage?: Message

    Message containing the checklist whose tasks were marked as done or not done

    markedAsDoneTaskIds?: number[]

    Identifiers of the tasks that were marked as done

    markedAsNotDoneTaskIds?: number[]

    Identifiers of the tasks that were marked as not done

    Accessors

    • get allAffectedTaskIds(): number[]

      Get all affected task IDs

      Returns number[]

    • get doneTasksCount(): number

      Get number of tasks marked as done

      Returns number

    • get notDoneTasksCount(): number

      Get number of tasks marked as not done

      Returns number

    • get totalAffectedTasks(): number

      Get total number of tasks affected

      Returns number

    Methods

    • Protected

      Creates a clone of the current instance

      Returns Base

      A clone of the current instance

    • Protected

      Patches the current instance with new data

      Parameters

      • data: Record<string, any>

        The data to patch the instance with

      Returns Record<string, any>

      The patched data

    • Protected

      Updates the current instance with new data and returns a clone of the updated instance

      Parameters

      • data: Record<string, any>

        The data to update the instance with

      Returns Base

      A clone of the updated instance

    • Flatten an object. Any properties that are collections will get converted to an array of keys.

      Parameters

      • OptionalpropsRecursive: boolean

        Optional. If true, calls toJSON method on nested objects.

      • ...props: Record<string, string | boolean>[]

        Optional. Specific properties to include/exclude, or rename.

      Returns Record<string, any>

      Flattened object.

    • Returns the id instance Chat, User, ChatMember and other

      Returns string | null