Page History
...
Name | Type | Required | Description |
---|---|---|---|
token | String | Yes | Token of the user on whose behalf the message is being sent |
to | String | Yes | Identifier of the user to whom the message is to be sent |
text | String | Yes | Text of the message |
flockml | String | No | FlockML alternative to message text. If present this will be shown instead of message text. |
notification | String | No | Notification to be shown for the message. If not present, text is used for the notification. |
mentions | Array | No | An array of user identifiers indicating users who have been mentioned in the message. |
sendAs | SendAs | No | Use this field if you want to display another name and image as the sender. |
attachments | Array | No | An array of attachments. Any rich content to be included with the message is sent as an attachments. |
onBehalfOf | String | No | Needed when a bot (using a bot token) needs to send a message into a sends a message to a channel. Set its value to the id of the user on whose behalf the bot is sending a message – this must be a user who has installed the app, is a member of the channel, and can post messages to the channel. Since bots cannot join channels right now, the user whose id is provided in onBehalfOf is used to check channel membership and posting permissions. See how bots can send a message to a channel. |
visibleTo | Array | No | Use this to display the message to a limited number of members in a channel. Its value should be an array of user ids. |
...