aboutsummaryrefslogtreecommitdiff
path: root/models.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <alexander@kiryukhin.su>2019-03-29 18:52:22 +0300
committerAlexander Kiryukhin <alexander@kiryukhin.su>2019-03-29 18:52:22 +0300
commit49c90f986bc8ba1abe7cedc24bd42522df4c3a2e (patch)
tree00b6f10ae96fa1f0e61fa5b55141fed2e6b253fa /models.go
parent2182e3069d6bef955a0edd1876d41ba822e5a366 (diff)
Fix attachments
Diffstat (limited to 'models.go')
-rw-r--r--models.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/models.go b/models.go
index 7ee7888..310baf6 100644
--- a/models.go
+++ b/models.go
@@ -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"`
}