mirror of
https://github.com/matrix-org/gomatrix
synced 2025-06-07 07:13:23 +00:00
ImageMessage can have optional Thumbnail Information and info is also optional
This commit is contained in:
parent
51f01ddc3d
commit
9f4eb0fd6d
1 changed files with 7 additions and 5 deletions
12
events.go
12
events.go
|
@ -73,12 +73,14 @@ type VideoMessage struct {
|
||||||
Info VideoInfo `json:"info"`
|
Info VideoInfo `json:"info"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ImageMessage is an m.image event
|
// ImageMessage is an m.image event - http://matrix.org/docs/spec/client_server/r0.2.0.html#m-image
|
||||||
type ImageMessage struct {
|
type ImageMessage struct {
|
||||||
MsgType string `json:"msgtype"`
|
MsgType string `json:"msgtype"`
|
||||||
Body string `json:"body"`
|
Body string `json:"body"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
Info ImageInfo `json:"info"`
|
Info ImageInfo `json:"info,omitempty"`
|
||||||
|
ThumbnailURL string `json:"thumbnail_url,omitempty"`
|
||||||
|
ThumbnailInfo ImageInfo `json:"thumbnail_info,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// An HTMLMessage is the contents of a Matrix HTML formated message event.
|
// An HTMLMessage is the contents of a Matrix HTML formated message event.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue