new ContactMessageEvent(Creates a new instance of ContactMessageEvent.params
):ContactMessageEvent
Client
The client associated with the event.
• params.data
The data associated with the event.
• params.data.contact: ContactMessage
• params.data.from: string
• params.data.isForwarded: boolean
• params.data.messageId: string
• params.data.timestamp: string
ContactMessageEvent
MessageEvent
.constructor
client: Client
The client instance associated with the event.
ContactMessageEventInterface
.client
MessageEvent
.client
contact: ContactMessage
The contact message associated with this event.
ContactMessageEventInterface
.contact
context: MessageContext
The context of the message.
ContactMessageEventInterface
.context
MessageEvent
.context
isForwarded: boolean
MessageEvent
.isForwarded
messageId: string
The ID of the message.
ContactMessageEventInterface
.messageId
MessageEvent
.messageId
timestamp: number
The timestamp of the message.
ContactMessageEventInterface
.timestamp
MessageEvent
.timestamp
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
>
MessageEvent
.react
read():Marks the message as read.Promise
<object
|object
|object
|object
|object
>
Promise
<object
| object
| object
| object
| object
>
MessageEvent
.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
>
MessageEvent
.reply