WIP: attachments

This commit is contained in:
Philipp Heckel 2022-01-04 00:55:08 +01:00
parent eb5b86ffe2
commit 38788bb2e9
9 changed files with 290 additions and 129 deletions

View file

@ -30,9 +30,11 @@ type message struct {
}
type attachment struct {
Name string `json:"name"`
Type string `json:"type"`
URL string `json:"url"`
Name string `json:"name"`
Type string `json:"type"`
Size int64 `json:"size"`
Expires int64 `json:"expires"`
URL string `json:"url"`
}
// messageEncoder is a function that knows how to encode a message