imopenlines.operator.another.finish
THe method finishes conversation of another agent.
Parameters
Parameter | Example | Required | Description |
---|---|---|---|
CHAT_ID | 2020 | Yes | Chat ID. |
Method call and response
JavaScript
BX.rest.callMethod( 'imopenlines.operator.another.finish', { CHAT_ID: 2024 } ) .then(result => console.log(result.data())) .catch(result => console.warn(result.error().ex)) ;
Response example:
true
Possible error codes
Code | Description |
---|---|
ACCESS_DENIED | Current user doesn't have access to this chat. |
CHAT_TYPE | Specified chat is not an Open Channel. |
CHAT_ID | Specified chat ID is incorrect. |
© «Bitrix24», 2001-2024