From 71663005032263c12df3418604500ddffac0d640 Mon Sep 17 00:00:00 2001 From: Karmanyaah Malhotra Date: Sat, 8 May 2021 15:38:54 -0400 Subject: [PATCH] Add more attachment values --- json.go | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/json.go b/json.go index 327c45f..564db52 100755 --- a/json.go +++ b/json.go @@ -146,15 +146,18 @@ const ( // Attachment is a GroupMe message attachment, returned in JSON API responses type Attachment struct { - Type attachmentType `json:"type,omitempty"` - Loci [][]int `json:"loci,omitempty"` - UserIDs []ID `json:"user_ids,omitempty"` - URL string `json:"url,omitempty"` - Name string `json:"name,omitempty"` - Latitude string `json:"lat,omitempty"` - Longitude string `json:"lng,omitempty"` - Placeholder string `json:"placeholder,omitempty"` - Charmap [][]int `json:"charmap,omitempty"` + Type attachmentType `json:"type,omitempty"` + Loci [][]int `json:"loci,omitempty"` + UserIDs []ID `json:"user_ids,omitempty"` + URL string `json:"url,omitempty"` + FileID string `json:"file_id,omitempty"` + VideoPreviewURL string `json:"preview_url,omitempty"` + Name string `json:"name,omitempty"` + Latitude string `json:"lat,omitempty"` + Longitude string `json:"lng,omitempty"` + Placeholder string `json:"placeholder,omitempty"` + Charmap [][]int `json:"charmap,omitempty"` + ReplyID ID `json:"reply_id,omitempty"` } func (a *Attachment) String() string {