imopenlines.message.session.start
Method starts session with a message.
Parameters
Parameter | Example | Required | Description |
---|---|---|---|
CHAT_ID | 494 | Yes | Chat ID. |
MESSAGE_ID | 18971 | Yes | Message 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
Code | Description |
---|---|
ACCESS_DENIED | Current user doesn't have access to the specified chat. |
CHAT_TYPE | Specified chat is not an Open Channel. |
CHAT_ID | Chat ID is incorrect. |
© «Bitrix24», 2001-2024