Send Messages
Send and receive messages with custom metadata and file attachments using ALO's JavaScript SDK.
Send a message
You can send a message as a reply, with custom metadata, and even pass a list of File
objects all in one command.
sendMessage({ channelId: string, content: string, ... })
sendMessage({ channelId: string, content: string, ... })
Name | Type | Required | Description |
channelId | string | yes | The id of the channel that the message will be added to. The |
content | string | yes | The content of the message. |
metadata | plain object | no | The metadata of the message is a custom object allowing you to attach any information you need directly onto the message. |
parentId | string | no | If the message is a reply to another message, set the |
files | array [File] | no | An array of |
Receive new messages
subscribe({ channelIds: [string] })
subscribe({ channelIds: [string] })
Name | Type | Required | Description |
channelIds | array [string] | yes | An array of |
Last updated