Skip to main content

Get information about file

Gets information about a file by ID

Function GetFileInformation(Val Token, Val FileID) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringBot token
FileID--fileidString, NumberFile 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 = "csItwJ7BNWt839V0FgXG1c68ee13641bd";

Result = OPI_VKTeams.GetFileInformation(Token, FileID);
    oint vkteams GetFileInformation \
--token "***" \
--fileid "xfpJa7eRXVx4RyEVJOCSd368ef72331bd"
Result
{
"filename": "ImportantDocument.docx",
"size": 24069,
"type": "application",
"url": "https://ub.myteam.vmailru.net/files/get/HuS9yYF-cgzikFlotvG2SNcCVxOhn8QE_avKV8WSYXyHdn9nQICWmni0P32fyB8kZn4ayvBX77_DtbG0zfT7SA5NWyJHQJ09_UE4E89EsjLnL71ATXC5iNKm11i3RadIhF8dtuIIa3LRt6PuceiZu6CLjtBLqP8ZzoOO8m0R3BUrlMFfkhR2bKgcT1hjublzVwBSs92GRvkdCgrETv2F1Zn0Nj2YNLmTYNvdlopJU5JLr9elJjgjvs32NRgeengtGUqKT6KzQSTjK3JFpC5Qs66SmDurT5qyJlOKuJ2GHwivyVQPIMUL5qBR5dgKAxLq_JvEtCIC6dOyv7tOaCji99xk8AmpVrn_TnRE7hqwI_BP0zeTT6Ybx1fhP4B-b2D12XWLWpk86IjCwMsz8pAf4AuOd0Um_a6tEzeGGQfDigzUBnDLxR6dyCu-bvKduTkaww/ImportantDocument.docx",
"ok": true
}