1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-02-15 14:03:22 +02:00
Vitaly the Alpaca (bot) b34e09430c Main build (Jenkins)
2024-10-20 15:55:22 +03:00

43 lines
720 B
Plaintext

---
sidebar_position: 4
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Archive channel
Archives an active channel
`Function ArchiveChannel(Val Token, Val Channel) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Bot token |
| Channel | --channel | String | ✔ | Channel ID |
Returns: Map Of KeyAndValue - serialized JSON response from Slack
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "xoxb-6965308400114-696804637...";
Channel = "C07SP91JSD8";
Result = OPI_Slack.ArchiveChannel(Token, Channel);
```
```json title="Result"
{
"ok": true
}
```