1
0
mirror of synced 2024-11-22 04:46:05 +03:00

fix: omitempty item_url

This commit is contained in:
Albert Le Batteux 2019-01-01 22:13:23 +01:00
parent b984d44124
commit 34e47adaff
No known key found for this signature in database
GPG Key ID: 6ECDB1C9555BCE18

View File

@ -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"`