add attachment.fallback json fields
This commit is contained in:
parent
f36e956bd8
commit
efd9d44236
@ -92,6 +92,8 @@ type Recipient struct {
|
||||
|
||||
// Attachment is a file which used in a message.
|
||||
type Attachment struct {
|
||||
Title string `json:"title,omitempty"`
|
||||
URL string `json:"url,omitempty"`
|
||||
// Type is what type the message is. (image, video, audio or location)
|
||||
Type string `json:"type"`
|
||||
// Payload is the information for the file which was sent in the attachment.
|
||||
|
@ -351,6 +351,8 @@ type StructuredMessageData struct {
|
||||
// StructuredMessageAttachment is the attachment of a structured message.
|
||||
type StructuredMessageAttachment struct {
|
||||
// Type must be template
|
||||
Title string `json:"title,omitempty"`
|
||||
URL string `json:"url,omitempty"`
|
||||
Type AttachmentType `json:"type"`
|
||||
// Payload is the information for the file which was sent in the attachment.
|
||||
Payload StructuredMessagePayload `json:"payload"`
|
||||
|
Loading…
Reference in New Issue
Block a user