This method allows an app to send a message to a user or a group.
|String||Yes||Token of the user on whose behalf the message is being sent|
|String||Yes||Identifier of the user to whom the message is to be sent|
|String||Yes||Text of the message|
|String||No||FlockML alternative to message text. If present this will be shown instead of message text.|
|String||No||Notification to be shown for the message. If not present, |
An array of user identifiers indicating users who have been mentioned in the message.
|SendAs||No||Use this field if you want to display another name and image as the sender.|
An array of attachments. Any rich content to be included with the message is sent as an attachments.
|String||No||Needed when a bot sends a message to a channel. Set its value to the id of the user on whose behalf the bot is sending a message. See how bots can send a message to a channel.|
|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.|
The attributes of the
sendAs field are as follows:
|String||Yes||Name of the sender.|
|String||Yes||URL of the sender's profile image.|
uid of the message.
|Error Code||HTTP Status||Description||Additional Parameters|
|400||The recipient of the message in the |
|400||The message contains neither text nor any attachment|