!!! info ""
mattermost://[username
@]mattermost-host
/token
[/channel
][?icon=smiley
]
--8<-- "docs/services/mattermost/config.md"
-
Open up the Integrations page by clicking on Integrations within the menu
-
If you did everything correctly, MatterMost will give you the URL to your newly created webhook
-
Format the service URL
https://your-domain.com/hooks/bywsw8zt5jgpte3nm65qjiru6h
└────────────────────────┘
token
mattermost://your-domain.com/bywsw8zt5jgpte3nm65qjiru6h
└────────────────────────┘
token
Mattermost provides functionality to post as another user or to another channel, compared to the webhook configuration.
To do this, you can add a user and/or channel to the service URL.
mattermost://shoutrrrUser@your-domain.com/bywsw8zt5jgpte3nm65qjiru6h/shoutrrrChannel
└──────────┘ └────────────────────────┘ └─────────────┘
user token channel
If you want to, you also have the possibility to pass parameters to the send
function.
The following example contains all parameters that are currently supported.
params := (*types.Params)(
&map[string]string{
"username": "overwriteUserName",
"channel": "overwriteChannel",
"icon": "overwriteIcon",
},
)
service.Send("this is a message", params)
This will overwrite any options, that you passed via URL.