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/yg2...";
ChatID = "1458";

Result = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);

URL = "b24-ar17wx.bitrix24.by";
Token = "2f4e4067006e9f06006b12e400000001000...";
ChatID = "1460";

Result = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID, Token);
    oint bitrix24 GetChatFilesFolder \
--url "https://b24-ar17wx.bitrix24.by/rest/1/yg22op67699ca9jx" \
--chat 1474
Result
{
"result": {
"ID": 12610
},
"time": {
"start": 1728454911.13738,
"finish": 1728454911.19324,
"duration": 0.0558590888977051,
"processing": 0.0317718982696533,
"date_start": "2024-10-09T09:21:51+03:00",
"date_finish": "2024-10-09T09:21:51+03:00",
"operating_reset_at": 1728455511,
"operating": 0
}
}