new ImageMessageEvent(Creates a new instance of ImageMessageEvent.params
):ImageMessageEvent
Client
The client associated with the event.
• params.data
The data associated with the event.
• params.data.from: string
• params.data.image: ImageMessage
• params.data.isForwarded: boolean
• params.data.mediaId: string
• params.data.messageId: string
• params.data.mimeType: string
• params.data.sha256: string
• params.data.timestamp: string
ImageMessageEvent
MediaMessageEvent
.constructor
client: Client
The client instance associated with the event.
ImageMessageEventInterface
.client
MediaMessageEvent
.client
context: MessageContext
The context of the message.
ImageMessageEventInterface
.context
MediaMessageEvent
.context
image: ImageMessage
The image message received in the event.
ImageMessageEventInterface
.image
isForwarded: boolean
MediaMessageEvent
.isForwarded
mediaId: string
The ID of the media.
ImageMessageEventInterface
.mediaId
MediaMessageEvent
.mediaId
messageId: string
The ID of the message.
ImageMessageEventInterface
.messageId
MediaMessageEvent
.messageId
mimeType: string
The MIME type of the media.
ImageMessageEventInterface
.mimeType
MediaMessageEvent
.mimeType
sha256: string
The SHA256 hash of the media.
ImageMessageEventInterface
.sha256
MediaMessageEvent
.sha256
timestamp: number
The timestamp of the message.
ImageMessageEventInterface
.timestamp
MediaMessageEvent
.timestamp
getUrl():Gets the URL of the media.Promise
<string
>
Promise
<string
>
ImageMessageEventInterface
.getUrl
MediaMessageEvent
.getUrl
react(Reacts to the message with an emoji.params
):Promise
<object
|object
>
string
The emoji to react with.
• params.phoneNumber: string
The phone number of the sender.
Promise
<object
| object
>
MediaMessageEvent
.react
read():Marks the message as read.Promise
<object
|object
|object
|object
|object
>
Promise
<object
| object
| object
| object
| object
>
MediaMessageEvent
.read
reply<Sends a reply to the message.T
>(props
):Promise
<object
|object
>
BaseMessage
<string
>
T
The message to send as a reply.
Promise
<object
| object
>
MediaMessageEvent
.reply