Skip to content

Commit

Permalink
Merge pull request #1208 from lheiskan/issue-1207
Browse files Browse the repository at this point in the history
Add UnfurlLinks and UnfurlMedia to WebhookMessage
  • Loading branch information
lorenzoaiello authored Jul 15, 2024
2 parents d959a37 + f7a929c commit 006a688
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type WebhookMessage struct {
ReplaceOriginal bool `json:"replace_original"`
DeleteOriginal bool `json:"delete_original"`
ReplyBroadcast bool `json:"reply_broadcast,omitempty"`
UnfurlLinks bool `json:"unfurl_links,omitempty"`
UnfurlMedia bool `json:"unfurl_media,omitempty"`
}

func PostWebhook(url string, msg *WebhookMessage) error {
Expand Down

0 comments on commit 006a688

Please sign in to comment.