telegramsjs
    Preparing search index...

    Class ChecklistTask

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    completedByUser?: User

    User that completed the task; omitted if the task wasn't completed

    completionUnixTime?: number

    Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed

    entities?: MessageEntities

    Special entities that appear in the task text

    id: number

    Unique identifier of the task

    text: string

    Text of the task

    Accessors

    • get completedAt(): Date | null

      Date the task was completed

      Returns Date | null

    • get completionTimestamp(): number | null

      Return the timestamp task was completed, in milliseconds

      Returns number | null

    • get isCompleted(): boolean

      True if the task is completed

      Returns boolean

    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