Fix attachments being omitted from postback (#1557)

This commit is contained in:
Robert R George 2023-10-13 13:36:42 -07:00 committed by GitHub
parent 954ed45009
commit c911aeb20e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,6 +129,7 @@ func (p *Postback) Push(m models.Message) error {
copy(a.Content, f.Content) copy(a.Content, f.Content)
files = append(files, a) files = append(files, a)
} }
pb.Attachments = files
} }
b, err := pb.MarshalJSON() b, err := pb.MarshalJSON()