2024-08-13 10:24:12 +00:00
|
|
|
---
|
|
|
|
|
sidebar_position: 3
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# Get information about file
|
|
|
|
|
Gets information about a file by ID
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`Function GetFileInformation(Val Token, Val FileID) Export`
|
|
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|
|
|
|-|-|-|-|
|
|
|
|
|
| Token | --token | String | Bot token |
|
|
|
|
|
| FileID | --fileid | String, Number | File ID |
|
2024-08-13 10:24:12 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
|
Returns: Map Of KeyAndValue - Serialized JSON response from VK Teams
|
2024-08-13 10:24:12 +00:00
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
:::tip
|
|
|
|
|
Method at API documentation: [GET /files/getInfo](https://teams.vk.com/botapi/#/files/get_files_getInfo)
|
|
|
|
|
:::
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bsl title="Code example"
|
2024-08-13 16:37:03 +03:00
|
|
|
Token = "001.3501506236.091...";
|
|
|
|
|
FileID = "sXhpbA5K2ZCOdG5ROIfRan66ba356d1bd";
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
|
Result = OPI_VKTeams.GetFileInformation(Token, FileID);
|
2024-08-13 10:24:12 +00:00
|
|
|
```
|
2024-08-13 15:52:26 +03:00
|
|
|
|
2024-08-13 10:24:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
```sh title="CLI command example"
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
|
oint vkteams GetFileInformation --token "001.3501506236.091..." --fileid "sXhpbA5K2ZCOdG5ROIfRan66ba356d1bd"
|
2024-08-13 10:24:12 +00:00
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
```json title="Result"
|
2024-08-13 10:24:12 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
```
|