pi_portal.modules.integrations.chat.slack.client.SlackClient

class pi_portal.modules.integrations.chat.slack.client.SlackClient[source]

Bases: ChatClientBase[TypeUserConfigChatSlack]

Slack messaging client.

__init__() None[source]
configure_logger() None

Configure a standardized logger for this class.

logging_config_class

alias of JsonLoggerConfigurationArchived

send_file(file_name: str, description: str) None[source]

Send a file with the Slack Web client.

Parameters:
  • file_name (str) – The path to upload to Slack.

  • description (str) – A description of the file being uploaded to Slack.

Raises:

ChatClientError

send_message(message: str) None[source]

Send a message with the Slack Web client.

Parameters:

message (str) – The message to send to Slack.

Raises:

ChatClientError