imopenlines.message.quick.save
Method saves message to quick replies.
Parameters
Parameter | Example | Required | Description |
---|---|---|---|
CHAT_ID | 2014 | Yes | Chat ID. |
MESSAGE_ID | 18715 | Yes | Message ID. |
Method call and response
JavaScript
BX.rest.callMethod( 'imopenlines.message.quick.save', { CHAT_ID: 2014, MESSAGE_ID: 18715 } ) .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 method. |
CANT_SAVE_QUICK_ANSWER | Error saving quick reply. |
© «Bitrix24», 2001-2024