new VideoMessageEvent(Creates a new instance of VideoMessageEvent.params
):VideoMessageEvent
Client
The client instance.
• params.data
The data for the event.
• params.data.from: string
• params.data.isForwarded: boolean
• params.data.mediaId: string
• params.data.messageId: string
• params.data.mimeType: string
• params.data.sha256: string
• params.data.timestamp: string
• params.data.video: VideoMessage
VideoMessageEvent
MediaMessageEvent
.constructor
client: Client
The client instance associated with the event.
VideoMessageEventInterface
.client
MediaMessageEvent
.client
context: MessageContext
The context of the message.
VideoMessageEventInterface
.context
MediaMessageEvent
.context
isForwarded: boolean
MediaMessageEvent
.isForwarded
mediaId: string
The ID of the media.
VideoMessageEventInterface
.mediaId
MediaMessageEvent
.mediaId
messageId: string
The ID of the message.
VideoMessageEventInterface
.messageId
MediaMessageEvent
.messageId
mimeType: string
The MIME type of the media.
VideoMessageEventInterface
.mimeType
MediaMessageEvent
.mimeType
sha256: string
The SHA256 hash of the media.
VideoMessageEventInterface
.sha256
MediaMessageEvent
.sha256
timestamp: number
The timestamp of the message.
VideoMessageEventInterface
.timestamp
MediaMessageEvent
.timestamp
video: VideoMessage
The video message associated with the event.
VideoMessageEventInterface
.video
getUrl():Gets the URL of the media.Promise
<string
>
Promise
<string
>
VideoMessageEventInterface
.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