Wapi.js Docs / StatusUpdateEvent

Class: abstract StatusUpdateEvent

Represents the status update event for webhook events.

Implements

Extends

Extended by

Implements

Constructors

new StatusUpdateEvent()

new StatusUpdateEvent(params): StatusUpdateEvent

Creates a new instance of the StatusUpdateEvent class.

Parameters

params

The parameters for creating the StatusUpdateEvent.

params.client: Client

The client instance.

params.from: string

The sender’s phone number.

params.timestamp: string

The timestamp of the status update.

Returns

StatusUpdateEvent

Overrides

BaseEvent.constructor

Memberof

StatusUpdateEvent

Source

packages/wapi.js/src/webhook/events/base/index.ts:219

Properties

client

client: Client

The client instance associated with the event.

Implementation of

StatusUpdateEventInterface.client

Inherited from

BaseEvent.client

Source

packages/wapi.js/src/webhook/events/base/index.ts:20


context

context: MessageContext

The context of the status update.

Implementation of

StatusUpdateEventInterface.context

Source

packages/wapi.js/src/webhook/events/base/index.ts:207


timestamp

timestamp: number

The timestamp of the status update.

Implementation of

StatusUpdateEventInterface.timestamp

Source

packages/wapi.js/src/webhook/events/base/index.ts:208