...
Name | Type | Description | ||||
---|---|---|---|---|---|---|
text |
| Menu title | ||||
options |
| Array of objects for the various possibilities of choice. See the next section for more details. | ||||
user |
| Semplified user object containing only user id and isAgent properties of the user who sent the message. |
option object:
Name | Type | Description | ||||
---|---|---|---|---|---|---|
id |
| Unique option id | ||||
command |
| Menu action. Can assume one of the following values:
| ||||
text |
| label shown in the option | ||||
targetUrl |
| text to send as a next query to the bot | ||||
params |
| array of two objects that specify how to open the external url. The first object has two properties:
The second object has two properties:
|
...
Name | Type | Description | ||||
---|---|---|---|---|---|---|
menuId |
| Id of the “MENU” message which was replied to | ||||
option |
| Response that was chosen by the user. See the next section for more details | ||||
user |
| Semplified user object containing only user id and isAgent properties of the user who sent the message. |
option object:
Name | Type | Description | ||||
---|---|---|---|---|---|---|
id |
| Id of the response chosen | ||||
targetUrl |
| query sent to the bot |
...
Name | Type | Description | ||||
---|---|---|---|---|---|---|
contacts |
| array of objects representing the contact. See the table below for the properties of the contact object. | ||||
user |
| Semplified user object containing only user id and isAgent properties of the user who sent the message. |
option object:
Name | Type | Description | ||||
---|---|---|---|---|---|---|
name |
| object containing the name of the contact. See table below for details. | ||||
phones |
| Array of objects containing the phone numbers of the contact. See table below |
...