sym.sdk.integrations.slack.send_message(destination: Union[sym.sdk.user.User, sym.sdk.integrations.slack.SlackChannel], message: str) None

Sends a simple message to a destination in Slack. Accepts either a User or a SlackChannel, which may represent a user, group, or channel in Slack.

For example:

# To send to #general:
slack.send_message("#general"), "Hello, world!")

# To DM a specific user:
slack.send_message(slack.user(""), "It works!")

# To DM the user who triggered an event:
slack.send_message(event.user, "You did a thing!")
  • destination – where the message should go.

  • message – the text contents of the message to send.