Skip to main content

Get chat files folder

Get information about folder for chat files

Function GetChatFilesFolder(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.disk.folder.get


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

Result = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);

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

Result = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID, Token);
    oint bitrix24 GetChatFilesFolder \
--url "b24-ar17wx.bitrix24.by" \
--chat 3266 \
--token "***"
Result
{
"result": {
"ID": 44974
},
"time": {
"start": 1760522403,
"finish": 1760522403.44235,
"duration": 0.442353010177612,
"processing": 0,
"date_start": "2025-10-15T10:00:03+00:00",
"date_finish": "2025-10-15T10:00:03+00:00",
"operating_reset_at": 1760523003,
"operating": 0.101873874664307
}
}