A message sent by a user.
Attribute | Type | Description |
|---|---|---|
type | string | always |
text | string | message content |
attachments | array | a list of attachment objects (see below) |
{
"type": "message",
"text": "hello",
"attachments": []
}File attachment
Attribute | Type | Description |
|---|---|---|
type | string | always |
url | string | file URL |
{
"type": "file",
"url": "http://example.com/file.zip"
}Video file attachment
Attribute | Type | Description |
|---|---|---|
type | string | always |
url | string | video file URL |
{
"type": "video",
"url": "http://example.com/file.mp4"
}Image file attachment
Attribute | Type | Description |
|---|---|---|
type | string | always |
url | string | image file URL |
{
"type": "image",
"url": "http://example.com/file.png"
}Audio file attachment
Attribute | Type | Description |
|---|---|---|
type | string | always |
url | string | audio file URL |
{
"type": "audio",
"url": "http://example.com/file.mp3"
}