imconnector.update.messages
The method updates messages in Open Channel.
Parameters
Parameter | Description | Available from version |
---|---|---|
CONNECTOR | Connector ID (specified when registering the handler). | |
LINE | Open Channel ID. | |
MESSAGES | Array of messages, described by the array of the following format:
array( array( //User description array 'user' => array( 'id',//User ID in external system* 'last_name',//Last name 'name',//Name 'picture' => array( 'url'//Link to user avatar, available for portal ), 'url',//Link to user profile 'sex',//Gender. Male and female are available ), //Message description array 'message' => array( 'id', //Message ID in external system.* 'date', //Message time in timestamp format* 'text', //Message text. Element text or files must be specified. 'files' => array(//File description array. Each file is described //by the array, with link, available to the portal array('url'), array('url'), ... ) ), //Chat description array 'chat' => array( 'id',//Chat ID in external system * 'name', //Chat name in external system 'url', //Chat link in external system ), ), array(...), ); |
© «Bitrix24», 2001-2024