route1io_connectors.slack module

Slack

This module contains code for sending messages to Slack via webhooks.

slack_block_message(message: Dict[str, str], webhook: str) None

Send formatted block message to Slack

Parameters
  • message (Dict[str, str]) – Dictionary containing the formatted block message to be sent to Slack

  • webhook (str) – WebHook for sending the message to

slack_message(message: str, webhook: str) None

Send plain message to Slack

Parameters
  • message (str) – Single string message to be sent to Slack

  • webhook (str) – WebHook for sending the message to