From 34e47adaff73316e4d5428b532797d34be58ace7 Mon Sep 17 00:00:00 2001 From: Albert Le Batteux Date: Tue, 1 Jan 2019 22:13:23 +0100 Subject: [PATCH] fix: omitempty item_url --- response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/response.go b/response.go index 4411761..d5a8e27 100644 --- a/response.go +++ b/response.go @@ -368,7 +368,7 @@ type StructuredMessagePayload struct { type StructuredMessageElement struct { Title string `json:"title"` ImageURL string `json:"image_url"` - ItemURL string `json:"item_url"` + ItemURL string `json:"item_url,omitempty"` Subtitle string `json:"subtitle"` DefaultAction *DefaultAction `json:"default_action,omitempty"` Buttons []StructuredMessageButton `json:"buttons"`