Private
Public Access
1
0

messages: Implements /messages API

This commit is contained in:
2023-06-19 18:31:05 -07:00
parent cdf3d922f7
commit 2d415a1170
6 changed files with 183 additions and 6 deletions

18
model/message.go Normal file
View File

@@ -0,0 +1,18 @@
package model
import "time"
type Message struct {
Text string `json:"text"`
Guid string `json:"guid"`
Sender *string `json:"sender"` // Optional: nil means from "me"
Date time.Time `json:"date"`
// Map of attachment GUID to attachment metadata
Attachments *map[string]AttributionInfo `json:"attachmentMetadata"` // Optional
}
type AttributionInfo struct {
ThumbnailWidth int `json:"pgensw"`
ThumbnailHeight int `json:"pgensh"`
}