Documentation

imopenlines.message.session.start

Method starts session with a message.

Parameters

ParameterExampleRequiredDescription
CHAT_ID494YesChat ID.
MESSAGE_ID18971YesMessage ID.

Method call and response

JavaScript

BX.rest.callMethod(
	'imopenlines.message.session.start',
	{
		CHAT_ID: 2024,
		MESSAGE_ID:  19880117
	}
)
	.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 the specified chat.
CHAT_TYPESpecified chat is not an Open Channel.
CHAT_IDChat ID is incorrect.


© «Bitrix24», 2001-2024