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
This commit is contained in:
parent
74b5cbe4ac
commit
66c2f90a07
12
response.go
12
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
|
||||
|
Loading…
Reference in New Issue
Block a user