Message

A message sent by a user.

AttributeTypeDescription
typestringalways message
textstringmessage content
attachmentsarraya list of attachment objects (see below)
{
    "type": "message",
    "text": "hello",
    "attachments": []
}

File attachment

AttributeTypeDescription
typestringalways file
urlstringfile URL
{
    "type": "file",
    "url": "http://example.com/file.zip"
}

Video file attachment

AttributeTypeDescription
typestringalways video
urlstringvideo file URL
{
    "type": "video",
    "url": "http://example.com/file.mp4"
}

Image file attachment

AttributeTypeDescription
typestringalways image
urlstringimage file URL
{
    "type": "image",
    "url": "http://example.com/file.png"
}

Audio file attachment

AttributeTypeDescription
typestringalways audio
urlstringaudio file URL
{
    "type": "audio",
    "url": "http://example.com/file.mp3"
}