Skip to main content

Get information about file

Gets information about a file by ID

Function GetFileInformation(Val Token, Val FileID) Export

ParameterCLI optionTypeDescription
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


Code example
    Token  = "001.3501506236.091...";
FileID = "z4jogAQwvZkNzuErMbBNHa66cb1e6f1bd";

Result = OPI_VKTeams.GetFileInformation(Token, FileID);
CLI command example
    
oint vkteams GetFileInformation --token "001.3501506236.091..." --fileid "sXhpbA5K2ZCOdG5ROIfRan66ba356d1bd"

Result
{
"filename": "ImportantDocument.docx",
"size": 24071,
"type": "application",
"url": "https://ub.icq.net/files/get/vqgXEKhdWYGb2IlixsIS3vxsISW8oxaIkQWff1DD5WQ1bmyCmGILM8v19hQ5FIiuvlrSfGbajGnvEjBGPTU84I2e6fP1r3bftIiyfQksabQYvGX3NEOIaEY14SfS7FzSFkGvLSSjC6gIpUkp71EtWd71gGxsIS/ImportantDocument.docx",
"ok": true
}