Get information about file
Gets information about a file by ID
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
tip
Method at API documentation: GET /files/getInfo
1C:Enterprise/OneScript code example
Token = "001.3501506236.091...";
FileID = "hGdf9rm9OIWXNADXdUA4by6716b5e41bd";
Result = OPI_VKTeams.GetFileInformation(Token, FileID);
- Bash
- CMD/Bat
oint vkteams GetFileInformation \
--token "***" \
--fileid "aRcVZBAtKCduymI3QoELQg672388ee1bd"
oint vkteams GetFileInformation ^
--token "***" ^
--fileid "aRcVZBAtKCduymI3QoELQg672388ee1bd"
Result
{
"filename": "ImportantDocument.docx",
"size": 24071,
"type": "application",
"url": "https://ub.icq.net/files/get/UevBEtxoDvTP9STM9cQIqD3cQIsU2jgGpNtxbSBlFdSiwSsu7INUFnIi7yRznGcZOvYiRHvmcGjlSRRIBSLheI78aN9IU8MS2Gcl8eGiMBiIii9BTFH1d8iCYIsl8bhIP5PnwS47uAEIC9JZb18v40xImk9cQI/ImportantDocument.docx",
"ok": true
}