From 66c2f90a0701389b9a03ad4a3f4d093015ff00bb Mon Sep 17 00:00:00 2001 From: Michele Gargiulo Date: Sun, 9 Apr 2017 18:56:55 +0200 Subject: [PATCH] Adds missing properties for web_url button in StructuredMessageButton. (#29) * Adds the Referral webhook and PostBacks's referral structure * Adds missing properties for web_url button in StructuredMessageButton. See https://developers.facebook.com/docs/messenger-platform/send-api-reference/url-button * Fixes the type of StructuredMessageButton.MessengerExtensions --- response.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/response.go b/response.go index e3f23e5..f71bd02 100644 --- a/response.go +++ b/response.go @@ -378,10 +378,14 @@ type StructuredMessageElement 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"` + 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"` } // SendSenderAction is the information about sender action