Message Properties |
The Message type exposes the following members.
Name | Description | |
---|---|---|
channel |
The channel. If not specified then the default channel for the configured webhook is used.
| |
color |
The color of the line to the left of the attachment. Can either be one of 'good', 'warning', 'danger', or any hex color code.
| |
image_url |
A valid URL to an image file that will be displayed inside a message attachment. We currently support the following formats: GIF, JPEG, PNG, and BMP.
Large images will be resized to a maximum width of 360px or a maximum height of 500px, while still maintaining the original aspect ratio.
| |
subject |
The subject of the message. Displayed as the message before the attachment.
| |
text |
The text under the title.
| |
thumb_url |
A valid URL to an image file that will be displayed as a thumbnail on the right side of a message attachment. We currently support the following formats: GIF, JPEG, PNG, and BMP.
The thumbnail's longest dimension will be scaled down to 75px while maintaining the aspect ratio of the image. The filesize of the image must also be less than 500 KB.
For best results, please use images that are already 75px by 75px.
| |
title |
The title of the message. This is displayed in bold next to the formatted line. Similar to an attachment.
| |
title_link |
By passing a valid URL in the title_link parameter (optional), the title text will be hyperlinked.
| |
url |
The webhook url. If this is null then the service property is used.
| |
username |
The user name or 'from' address used. This does not need to be a valid Slack user.
|