fix(utils/content-map): file hash and size are optional

This commit is contained in:
DevMiner 2024-08-28 01:28:18 +02:00
parent 6c60c1e8ed
commit 0f44cfe95e

View file

@ -96,9 +96,9 @@ type File struct {
// URL to the attachment
Content *URL `json:"content"`
Description string `json:"description"`
Hash DataHash `json:"hash"`
Size int `json:"size"`
Description *string `json:"description,omitempty"`
Hash *DataHash `json:"hash,omitempty"`
Size *int `json:"size,omitempty"`
// BlurHash is available when the content type is an image
BlurHash *string `json:"blurhash,omitempty"`