new QuickReplyButtonInteractionEvent(Creates a new instance of QuickReplyButtonInteractionEvent.params
):QuickReplyButtonInteractionEvent
Client
The client object.
• params.data
The data object.
• params.data.buttonPayload: string
• params.data.buttonText: string
• params.data.from: string
• params.data.isForwarded: boolean
• params.data.messageId: string
• params.data.timestamp: string
QuickReplyButtonInteractionEvent
InteractionEvent
.constructor
button: object
payload: string
text: string
QuickReplyButtonInteractionEventInterface
.button
client: Client
The client instance associated with the event.
QuickReplyButtonInteractionEventInterface
.client
InteractionEvent
.client
context: MessageContext
The context of the message.
QuickReplyButtonInteractionEventInterface
.context
InteractionEvent
.context
isForwarded: boolean
InteractionEvent
.isForwarded
messageId: string
The ID of the message.
QuickReplyButtonInteractionEventInterface
.messageId
InteractionEvent
.messageId
timestamp: number
The timestamp of the message.
QuickReplyButtonInteractionEventInterface
.timestamp
InteractionEvent
.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
>
InteractionEvent
.react
read():Marks the message as read.Promise
<object
|object
|object
|object
|object
>
Promise
<object
| object
| object
| object
| object
>
InteractionEvent
.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
>
InteractionEvent
.reply