pi_portal.modules.integrations.chat.bases.client.ChatClientBase

class pi_portal.modules.integrations.chat.bases.client.ChatClientBase[source]

Bases: ArchivedLogFileWriter, Generic[TypeIntegrationConfig]

Chat integration chat messaging client.

__init__() None[source]
configure_logger() None

Configure a standardized logger for this class.

logging_config_class

alias of JsonLoggerConfigurationArchived

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

Send a file to the chat server.

Implementations must handle raised exceptions and log errors appropriately.

Parameters:
  • file_name (str) – The path to upload to the chat server.

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

Raises:

ChatClientError

abstract send_message(message: str) None[source]

Send a message to the chat server.

Implementations must handle raised exceptions and log errors appropriately.

Parameters:

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

Raises:

ChatClientError