Get information about file
Gets information about a file by ID
- Parameters
- Advanced call ?
Function GetFileInformation(Val Token, Val FileID) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Bot token |
| FileID | --fileid | String, Number | ✔ | File ID |
Returns
Map Of KeyAndValue - serialized JSON response from VK Teams
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Method at API documentation: GET /files/getInfo
1C:Enterprise/OneScript code example
Token = "001.3501506236.091...";
FileID = "f7ey3o4dcncSTDBRC7c3fM6904a4ed1bd";
Result = OPI_VKTeams.GetFileInformation(Token, FileID);
- Bash
- CMD/Bat
oint vkteams GetFileInformation \
--token "***" \
--fileid "TAY9UEShFxwTNN2VCuOVIJ6a15ab811bd"
oint vkteams GetFileInformation ^
--token "***" ^
--fileid "TAY9UEShFxwTNN2VCuOVIJ6a15ab811bd"
Result
{
"filename": "ImportantDocument.docx",
"size": 24069,
"type": "application",
"url": "https://ub.myteam.vmailru.net/files/get/VHgEhoSo6BMs9YzI54mIBHwcFibn6o1z_sudsYvGi1rQ_HlSiKb2yY30C67q...",
"ok": true
}