mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
add func: NewImage([]byte).
This commit is contained in:
parent
7302ac5f7e
commit
4dc16b45ba
@ -34,6 +34,12 @@ func NewNetImage(filename, url string) *ImageElement {
|
||||
}
|
||||
}
|
||||
|
||||
func NewImage(data []byte) *ImageElement {
|
||||
return &ImageElement{
|
||||
Data: data,
|
||||
}
|
||||
}
|
||||
|
||||
func NewGroupImage(id string, md5 []byte) *GroupImageElement {
|
||||
return &GroupImageElement{
|
||||
ImageId: id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user