Add TopElementStyle attribute to StructuredMessagePayload
This commit is contained in:
parent
65752d0a98
commit
78e9ea3089
@ -17,6 +17,7 @@ import (
|
||||
// AttachmentType is attachment type.
|
||||
type AttachmentType string
|
||||
type MessagingType string
|
||||
type TopElementStyle string
|
||||
|
||||
const (
|
||||
// SendMessageURL is API endpoint for sending messages.
|
||||
@ -39,6 +40,11 @@ const (
|
||||
MessageTagType MessagingType = "MESSAGE_TAG"
|
||||
// NonPromotionalSubscriptionType is NON_PROMOTIONAL_SUBSCRIPTION messaging type
|
||||
NonPromotionalSubscriptionType MessagingType = "NON_PROMOTIONAL_SUBSCRIPTION"
|
||||
|
||||
// TopElementStyle is compact.
|
||||
CompactTopElementStyle TopElementStyle = "compact"
|
||||
// TopElementStyle is large.
|
||||
LargeTopElementStyle TopElementStyle = "large"
|
||||
)
|
||||
|
||||
// QueryResponse is the response sent back by Facebook when setting up things
|
||||
@ -343,6 +349,7 @@ type StructuredMessageAttachment struct {
|
||||
type StructuredMessagePayload struct {
|
||||
// TemplateType must be button, generic or receipt
|
||||
TemplateType string `json:"template_type,omitempty"`
|
||||
TopElementStyle TopElementStyle `json:"top_element_style,omitempty"`
|
||||
Text string `json:"text,omitempty"`
|
||||
Elements *[]StructuredMessageElement `json:"elements,omitempty"`
|
||||
Buttons *[]StructuredMessageButton `json:"buttons,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user