abstract
MessageEventMediaMessageEvent
ContactMessageEvent
InteractionEvent
AdInteractionEvent
LocationMessageEvent
OrderMessageEvent
ProductInquiryEvent
ReactionEvent
TextMessageEvent
new MessageEvent(Creates a new instance of the MessageEvent class.params
):MessageEvent
Client
The client instance.
• params.from: string
The sender’s phone number.
• params.id: string
The message ID.
• params.isForwarded: boolean
Indicates if the message is forwarded.
• params.timestamp: string
The timestamp of the message.
MessageEvent
BaseEvent
.constructor
client: Client
The client instance associated with the event.
MessageEventInterface
.client
BaseEvent
.client
context: MessageContext
The context of the message.
MessageEventInterface
.context
isForwarded: boolean
messageId: string
The ID of the message.
MessageEventInterface
.messageId
timestamp: number
The timestamp of the message.
MessageEventInterface
.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
>
read():Marks the message as read.Promise
<object
|object
|object
|object
|object
>
Promise
<object
| object
| object
| object
| object
>
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
>