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 = "3956";

Result = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);

URL = "b24-ar17wx.bitrix24.by";
Token = "bafe5c69006e9f06006b12e400000001000...";
ChatID = "3958";

Result = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID, Token);
    oint bitrix24 GetChatFilesFolder \
--url "b24-ar17wx.bitrix24.by" \
--chat "***" \
--token "***"
Result
{
"result": {
"ID": 50176
},
"time": {
"start": 1767709402,
"finish": 1767709402.28972,
"duration": 0.289720058441162,
"processing": 0,
"date_start": "2026-01-06T14:23:22+00:00",
"date_finish": "2026-01-06T14:23:22+00:00",
"operating_reset_at": 1767710002,
"operating": 0
}
}