Add more attachment values
This commit is contained in:
parent
f92a8a7a86
commit
7166300503
21
json.go
21
json.go
@ -146,15 +146,18 @@ const (
|
|||||||
|
|
||||||
// Attachment is a GroupMe message attachment, returned in JSON API responses
|
// Attachment is a GroupMe message attachment, returned in JSON API responses
|
||||||
type Attachment struct {
|
type Attachment struct {
|
||||||
Type attachmentType `json:"type,omitempty"`
|
Type attachmentType `json:"type,omitempty"`
|
||||||
Loci [][]int `json:"loci,omitempty"`
|
Loci [][]int `json:"loci,omitempty"`
|
||||||
UserIDs []ID `json:"user_ids,omitempty"`
|
UserIDs []ID `json:"user_ids,omitempty"`
|
||||||
URL string `json:"url,omitempty"`
|
URL string `json:"url,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
FileID string `json:"file_id,omitempty"`
|
||||||
Latitude string `json:"lat,omitempty"`
|
VideoPreviewURL string `json:"preview_url,omitempty"`
|
||||||
Longitude string `json:"lng,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
Placeholder string `json:"placeholder,omitempty"`
|
Latitude string `json:"lat,omitempty"`
|
||||||
Charmap [][]int `json:"charmap,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 {
|
func (a *Attachment) String() string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user