Skip to main content

Enable chat notifications

Enable chat notifications

Function EnableChatNotifications(Val URL, Val ChatID, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
ChatID--chatString, NumberChat ID
Token--tokenStringAccess token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


tip

Method at API documentation: im.chat.mute


1C:Enterprise/OneScript code example
    URL    = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
ChatID = "3244";

Result = OPI_Bitrix24.EnableChatNotifications(URL, ChatID);

URL = "b24-ar17wx.bitrix24.by";
Token = "8a1bee68006e9f06006b12e400000001000...";
ChatID = "3246";

Result = OPI_Bitrix24.EnableChatNotifications(URL, ChatID, Token);
    oint bitrix24 EnableChatNotifications \
--url "b24-ar17wx.bitrix24.by" \
--chat 3266 \
--token "***"
Result
{
"result": true,
"time": {
"start": 1760522331,
"finish": 1760522331.22944,
"duration": 0.229435920715332,
"processing": 0,
"date_start": "2025-10-15T09:58:51+00:00",
"date_finish": "2025-10-15T09:58:51+00:00",
"operating_reset_at": 1760522931,
"operating": 0
}
}