Documentation

im.notify

Notifies the specified user.

Function parameters

Parameter Description
to Message recipient ID
message Message text. Supports BUIS and other BB-codes (except video). Does not supports html; use #BR# for line breaks.
type Accessible values: SYSTEM or USER. If the value is not specified, then by default the parameter works as USER. If SYSTEM value is specified, then the message will not be sent from a user, but from the application instead.

Example

BX24.selectUser(function(user){
	if(user)
	{
		BX24.callMethod('im.notify', {to: user.id, message: 'Hello, '+user.name+'!'});
	}
});

Request:

https://my.bitrix24.com/rest/im.notify.json?auth=50e5ee3f2e27ee7091ee9d05f1952a5b&message=%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82%2C%20%D0%9E%D0%B4%D0%BC%D0%B8%D0%BD!&to=1

Response:

{"result":26}


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2019, «Bitrix Inc.», 2019