mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-04-17 12:06:34 +02:00
69 lines
1.6 KiB
Plaintext
69 lines
1.6 KiB
Plaintext
---
|
|
sidebar_position: 3
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# 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
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
Method at API documentation: [GET /files/getInfo](https://teams.vk.com/botapi/#/files/get_files_getInfo)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "001.3501506236.091...";
|
|
FileID = "dPHpepycp8UJIYJGDFPzZ26756d9f41bd";
|
|
|
|
Result = OPI_VKTeams.GetFileInformation(Token, FileID);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint vkteams GetFileInformation \
|
|
--token "***" \
|
|
--fileid "i3eN5y2HhBh6UWhA5Lv1Fz67575aba1bd"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint vkteams GetFileInformation ^
|
|
--token "***" ^
|
|
--fileid "i3eN5y2HhBh6UWhA5Lv1Fz67575aba1bd"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"filename": "ImportantDocument.docx",
|
|
"size": 24071,
|
|
"type": "application",
|
|
"url": "https://ub.icq.net/files/get/UevBEtxoDvTP9STM9cQIqD3cQIsU2jgGpNtxbSBlFdSiwSsu7INUFnIi7yRznGcZOvYiRHvmcGjlSRRIBSLheI78aN9IU8MS2Gcl8eGiMBiIii9BTFH1d8iCYIsl8bhIP5PnwS47uAEIC9JZb18v40xImk9cQI/ImportantDocument.docx",
|
|
"ok": true
|
|
}
|
|
```
|