Skip to main content

Open dialog

Opens a new dialog with one or more users

Function OpenDialog(Val Token, Val ArrayOfUsers) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringBot token
ArrayOfUsers--usersArray of StringUser ID Array

Returns: Map Of KeyAndValue - serialized JSON response from Slack


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

Result = OPI_Slack.OpenDialog(Token, User);
    oint slack OpenDialog \
--token "***" \
--users "U06UABH3APP"
Result
{
"ok": true,
"no_op": false,
"already_open": false,
"channel": {
"id": "D06UAKK1C6R"
}
}