Skip to main content

Close dialog

Closes an existing dialog

Function CloseDialog(Val Token, Val Dialog) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringBot token
Dialog--convStringDialog ID

Returns: Map Of KeyAndValue - serialized JSON response from Slack


1C:Enterprise/OneScript code example
    Token  = "xoxb-6965308400114-696804637...";
Dialog = "D06UAKK1C6R";

Result = OPI_Slack.CloseDialog(Token, Dialog);
    oint slack CloseDialog \
--token "***" \
--conv "D06UAKK1C6R"
Result
{
"ok": true,
"already_closed": false,
"no_op": false
}