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

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:
Michele Gargiulo 2017-04-09 18:56:55 +02:00 committed by Harrison Shoebridge
parent 74b5cbe4ac
commit 66c2f90a07

View File

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