Add default_action property to attachments
This commit is contained in:
parent
5f41235104
commit
a9882ddddb
11
response.go
11
response.go
@ -370,9 +370,20 @@ type StructuredMessageElement struct {
|
|||||||
ImageURL string `json:"image_url"`
|
ImageURL string `json:"image_url"`
|
||||||
ItemURL string `json:"item_url"`
|
ItemURL string `json:"item_url"`
|
||||||
Subtitle string `json:"subtitle"`
|
Subtitle string `json:"subtitle"`
|
||||||
|
DefaultAction *DefaultAction `json:"default_action,omitempty"`
|
||||||
Buttons []StructuredMessageButton `json:"buttons"`
|
Buttons []StructuredMessageButton `json:"buttons"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DefaultAction is a response containing default action properties
|
||||||
|
type DefaultAction struct {
|
||||||
|
Type string `json:"type"`
|
||||||
|
URL string `json:"url,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"`
|
||||||
|
}
|
||||||
|
|
||||||
// StructuredMessageButton is a response containing buttons
|
// StructuredMessageButton is a response containing buttons
|
||||||
type StructuredMessageButton struct {
|
type StructuredMessageButton struct {
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user