new AdInteractionEvent(Creates a new instance of AdInteractionEvent.params
):AdInteractionEvent
Client
The client object.
• params.data
The data object.
• params.data.from: string
• params.data.id: string
• params.data.isForwarded: boolean
• params.data.source
• params.data.source.ctwaClid: string
• params.data.source.description: string
• params.data.source.id: string
• params.data.source.mediaType: AdInteractionSourceMediaTypeEnum
• params.data.source.mediaUrl?: string
• params.data.source.thumbnailUrl: string
• params.data.source.title: string
• params.data.source.type: AdInteractionSourceTypeEnum
• params.data.source.url: string
• params.data.text: string
• params.data.timestamp: string
AdInteractionEvent
MessageEvent
.constructor
client: Client
The client instance associated with the event.
AdInteractionEventInterface
.client
MessageEvent
.client
context: MessageContext
The context of the message.
AdInteractionEventInterface
.context
MessageEvent
.context
isForwarded: boolean
MessageEvent
.isForwarded
messageId: string
The ID of the message.
AdInteractionEventInterface
.messageId
MessageEvent
.messageId
source: object
ctwaClid: string
description: string
id: string
mediaType: AdInteractionSourceMediaTypeEnum
optional
mediaUrl:string
thumbnailUrl: string
title: string
type: AdInteractionSourceTypeEnum
url: string
AdInteractionEventInterface
.source
text: string
AdInteractionEventInterface
.text
timestamp: number
The timestamp of the message.
AdInteractionEventInterface
.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