Documentation

imopenlines.message.quick.save

Method saves message to quick replies.

Parameters

ParameterExampleRequiredDescription
CHAT_ID2014YesChat ID.
MESSAGE_ID18715YesMessage 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

CodeDescription
ACCESS_DENIEDCurrent user doesn't have access to the specified method.
CANT_SAVE_QUICK_ANSWERError saving quick reply.


© «Bitrix24», 2001-2024