mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-26 09:54:15 +00:00
Add support for Type and Attachments in incoming webhooks
This commit is contained in:
@@ -21,6 +21,8 @@ type OMessage struct {
|
|||||||
IconEmoji string `json:"icon_emoji,omitempty"`
|
IconEmoji string `json:"icon_emoji,omitempty"`
|
||||||
UserName string `json:"username,omitempty"`
|
UserName string `json:"username,omitempty"`
|
||||||
Text string `json:"text"`
|
Text string `json:"text"`
|
||||||
|
Attachments interface{} `json:"attachments,omitempty"`
|
||||||
|
Type string `json:"type,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// IMessage for mattermost outgoing webhook. (received from mattermost)
|
// IMessage for mattermost outgoing webhook. (received from mattermost)
|
||||||
|
Reference in New Issue
Block a user