diff options
author | Alexander Kiryukhin <alexander@kiryukhin.su> | 2019-03-29 18:52:22 +0300 |
---|---|---|
committer | Alexander Kiryukhin <alexander@kiryukhin.su> | 2019-03-29 18:52:22 +0300 |
commit | 49c90f986bc8ba1abe7cedc24bd42522df4c3a2e (patch) | |
tree | 00b6f10ae96fa1f0e61fa5b55141fed2e6b253fa /models.go | |
parent | 2182e3069d6bef955a0edd1876d41ba822e5a366 (diff) |
Fix attachments
Diffstat (limited to 'models.go')
-rw-r--r-- | models.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -387,7 +387,8 @@ type MessageBody struct { // Message text Text string `json:"text"` // Message attachments. Could be one of `Attachment` type. See description of this schema - Attachments []Attachment `json:"attachments"` + RawAttachments []json.RawMessage `json:"attachments"` + Attachments []interface{} // In case this message is repled to, it is the unique identifier of the replied message ReplyTo string `json:"reply_to,omitempty"` } |