Documentation

OnImConnectorMessageUpdate

The event modifies message in Open Channel.

It must be called in response to the method imconnector.send.status.delivery, for the message to be considered as successfully modified in the messenger.

Parameters

Parameter Description Available from version
CONNECTOR Connector ID (used to check, if this event is associated to the verifying user).
LINE Open Channel ID.
DATA Array of messages, where each message is described by the array of the following type:
array (
      'im' =>
      array (
        //Chat ID within Bitrix24
        'chat_id' => '845',
        //Message ID within Bitrix24
        'message_id' => '344029',
      ),
      'message' =>
      array (
        //Array of IDs of the edited messages in external  
        //system (new IDs must be returned in 
        //sendStatusDelivery, event if they match)
        //Envisage the variant, when single value is returned!
        'id' =>
        array (
          0 => '99',
        ),
        //New message text
        'text' => '[b]John Smith:[/b][br] Text message 55',
      ),
      'chat' =>
      array (
        //Chat ID in external system
        'id' => '2',
      ),
 );

© «Bitrix24», 2001-2024
Up