1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-31 23:20:02 +02:00
Vitaly the Alpaca (bot) 164a2d2c04 Main build (Jenkins)
2024-10-15 21:15:56 +03:00

45 lines
744 B
Plaintext

---
sidebar_position: 2
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Close dialog
Closes an existing dialog
`Function CloseDialog(Val Token, Val Dialog) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Bot token |
| Dialog | --conv | String | ✔ | Dialog ID |
Returns: Map Of KeyAndValue - serialized JSON response from Slack
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "xoxb-6965308400114-696804637...";
Dialog = "D06UAKK1C6R";
Result = OPI_Slack.CloseDialog(Token, Dialog);
```
```json title="Result"
{
"ok": true,
"already_closed": false,
"no_op": false
}
```