OnImConnectorMessageAdd
The event marks new message in Open Channel. This event is thrown for full-fledged connectors for such services as Telegram. It does not operate with
widget or online chat
You can find more details on CHAT API -
in this section...
, designed more like JS apps.
It must be called in response to the method imconnector.send.status.delivery, otherwise the message will be marked as not delivered in the messenger.
Parameters
Parameter | Description | Available from version |
---|---|---|
CONNECTOR | Connector ID (used to check, if this event is associated with the verifying user). | |
LINE | Open Channel ID. | |
MESSAGES | Array of messages, where each message is described by the array of the following type:
array ( //Array of parameters for reference (returned in the delivery message) 'im' => array ( //Chat ID within Bitrix24 'chat_id' => '845', //Message ID within Bitrix24 'message_id' => '344029', ), 'message' => array ( //Message text 'text' => '[b]Сергей "Покоев":[/b][br] Тестовое сообщение' ), 'chat' => array ( //Chat ID in external system 'id' => '2', ), ); |
© «Bitrix24», 2001-2024