diff --git a/will/backends/io_adapters/slack.py b/will/backends/io_adapters/slack.py index 6c808bb0..7b8be976 100644 --- a/will/backends/io_adapters/slack.py +++ b/will/backends/io_adapters/slack.py @@ -303,6 +303,11 @@ def send_message(self, event): } ]), }) + elif "attachments" in event.kwargs: + data.update({ + "text": event.content, + "attachments": json.dumps(event.kwargs["attachments"]) + }) else: data.update({ "text": event.content,