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 = "TyWBqwavdfo3jDAcPxqfOg68c6cb501bd";
Result = OPI_VKTeams.GetFileInformation(Token, FileID);
- Bash
- CMD/Bat
oint vkteams GetFileInformation \
--token "***" \
--fileid "af5PNZSBsVFJoHeoQ4F01668c89a9c1bd"
oint vkteams GetFileInformation ^
--token "***" ^
--fileid "af5PNZSBsVFJoHeoQ4F01668c89a9c1bd"
Result
{
"filename": "ImportantDocument.docx",
"size": 24069,
"type": "application",
"url": "https://ub.myteam.vmailru.net/files/get/ILh0UqAqnRw6BzhnhMK3IdIC4uikguCDFw5EBOzvxUGzDgjJIv-DdvhtZNNGw7jJkuEY6GeH9sXBwVSYd2jhCaSs9N5CpWLNs4HwqAwak3afOMvqDDcCMkhlg2MWQdIC6_nSvU5WqWbMzk89HHcFld-IN0nNBuXYn_CjXC4fbnmVOaVrSjP7XhPpcBpP9VOuZ_q62nexTgHcfi9Qv3Vfx5LBDQQ9M8tBG6fyyqGD9vzstLl4oJoy_tmahHQxUf1gY40EInIfmA5BxNkejDJZvNZibyp2sm-lbbJ8k6lVnif6mtAuiraFnnDgvUUbT3hAb8uC1lR2fqbrJ__zFUpT4HRn4etf-EKK1vZarB8IhKlaxE2flwB9xedWPNrlXyhnbfnkjz1PAAGZVoT1tJIeRQvZYMhuFnzylPZvwWStnATq7pa1mXGKObwp_pR3SizMNA/ImportantDocument.docx",
"ok": true
}