From 52e988e2939811f03b4e609c6895a297bc067d48 Mon Sep 17 00:00:00 2001 From: Pranas Kiziela Date: Tue, 26 Feb 2019 17:07:06 -0500 Subject: [PATCH] Add ShareContents property --- response.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/response.go b/response.go index e653143..071d7de 100644 --- a/response.go +++ b/response.go @@ -392,14 +392,15 @@ type DefaultAction struct { // StructuredMessageButton is a response containing buttons type StructuredMessageButton struct { - Type string `json:"type"` - URL string `json:"url,omitempty"` - Title string `json:"title,omitempty"` - Payload string `json:"payload,omitempty"` - WebviewHeightRatio string `json:"webview_height_ratio,omitempty"` - MessengerExtensions bool `json:"messenger_extensions,omitempty"` - FallbackURL string `json:"fallback_url,omitempty"` - WebviewShareButton string `json:"webview_share_button,omitempty"` + Type string `json:"type"` + URL string `json:"url,omitempty"` + Title string `json:"title,omitempty"` + Payload string `json:"payload,omitempty"` + WebviewHeightRatio string `json:"webview_height_ratio,omitempty"` + MessengerExtensions bool `json:"messenger_extensions,omitempty"` + FallbackURL string `json:"fallback_url,omitempty"` + WebviewShareButton string `json:"webview_share_button,omitempty"` + ShareContents *StructuredMessageData `json:"share_contents,omitempty"` } // SendSenderAction is the information about sender action