@aiteq/messenger-bot > MessageBuilder
An abstract parent class for message builders. The message builders help to construct complex messages to be send (e.g. template messages).
T: Message
↳ MessageBuilder
Adds a Quick Reply button to quickly send user's location.
Returns: this
- for chaining
Adds a Quick Reply button to the message.
Parameters:
Param | Type | Description |
---|---|---|
title | string |
title of the Quick Reply |
id | string |
ID of the button (required for proper generation of webhook events) |
data | any |
optional data to be send when the user click on the Quick Reply button |
imageUrl | string |
URL of optional image |
Returns: this
- for chaining