Documentation

imopenlines.operator.another.finish

THe method finishes conversation of another agent.

Parameters

ParameterExampleRequiredDescription
CHAT_ID2020YesChat 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

CodeDescription
ACCESS_DENIEDCurrent user doesn't have access to this chat.
CHAT_TYPESpecified chat is not an Open Channel.
CHAT_IDSpecified chat ID is incorrect.


© «Bitrix24», 2001-2024