diff --git a/hooks/slack.py b/hooks/slack.py index 7631e79..5c0ef55 100644 --- a/hooks/slack.py +++ b/hooks/slack.py @@ -16,7 +16,7 @@ def send_slack_message(data: Dict[str, str]) -> str: Returns: request response """ - payload = {"text": data} + payload = {"text": json.dumps(data)} payload_json = json.dumps(payload) headers = {"Content-type": "application/json"} response = requests.request(