You can either send row messages without styling or you make use of the slack attachment options. The module does the hard work for you and all attachment options from slack are supported.
To add attachments, you need to add some values to your message. See here an example for a message:
As you see, the array key is wrapped with an % sign. After the array key, you add the value. The value can also contains multiple lines.
You do not need to define the "fallback" paramenter. The module sets the "fallback" parameter automatically. It does copy the content of the "text" parameter into the "fallback" parameter.
It is even possible to add "fields" into the attachment.
For adding fields, you use the following code:
You can use up to 16 fields. Just increase the number for every field.