Wapi.js Docs / MediaMessageEventInterface

Interface: MediaMessageEventInterface

Represents the interface for a media message event.

Interface

MediaMessageEventInterface

Extends

Extended by

Properties

client

client: Client
The client instance associated with the event.

Inherited from

MessageEventInterface.client

Source

packages/wapi.js/src/webhook/events/base/interface.ts:18

context

context: MessageContext
The context of the message.

Inherited from

MessageEventInterface.context

Source

packages/wapi.js/src/webhook/events/base/interface.ts:35

getUrl()

getUrl: () => Promise<string>
A function that returns the URL of the media.

Returns

Promise<string>

Source

packages/wapi.js/src/webhook/events/base/interface.ts:64

mediaId

mediaId: string
The ID of the media.

Source

packages/wapi.js/src/webhook/events/base/interface.ts:51

messageId

messageId: string
The ID of the message.

Inherited from

MessageEventInterface.messageId

Source

packages/wapi.js/src/webhook/events/base/interface.ts:30

mimeType

mimeType: string
The MIME type of the media.

Source

packages/wapi.js/src/webhook/events/base/interface.ts:55

sha256

sha256: string
The SHA256 hash of the media.

Source

packages/wapi.js/src/webhook/events/base/interface.ts:59

timestamp

timestamp: number
The timestamp of the message.

Inherited from

MessageEventInterface.timestamp

Source

packages/wapi.js/src/webhook/events/base/interface.ts:39