1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00
This commit is contained in:
Mrs4s 2020-07-18 01:01:32 +08:00
parent 64c1f32cdc
commit 23e8acafb1

View File

@ -41,6 +41,12 @@ func NewText(s string) *TextElement {
return &TextElement{Content: s} return &TextElement{Content: s}
} }
func NewImage(data []byte) *ImageElement {
return &ImageElement{
Data: data,
}
}
func NewGroupImage(id string, md5 []byte) *GroupImageElement { func NewGroupImage(id string, md5 []byte) *GroupImageElement {
return &GroupImageElement{ return &GroupImageElement{
ImageId: id, ImageId: id,