Class BusinessMessagesDeleted

Hierarchy (view full)

  • Base
    • BusinessMessagesDeleted

Constructors

Properties

Accessors

Methods

Constructors

Properties

chat: Chat

Information about a chat in the business account. The bot may not have access to the chat or the corresponding user

id: string

Unique identifier of the business connection

ids: string[]

The list of identifiers of deleted messages in the chat of the business account

Accessors

Methods

  • Makes the class iterable, returning each messages identifiers

    Returns IterableIterator<string>

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

    • Rest...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 null | string