forked from LagrangeDev/LagrangeGo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
image.go
44 lines (36 loc) · 767 Bytes
/
image.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package message
// from https://github.com/Mrs4s/MiraiGo/blob/master/message/image.go
import (
"github.com/2mf8/LagrangeGo/client/packets/pb/message"
"github.com/2mf8/LagrangeGo/client/packets/pb/service/oidb"
)
type GroupImageElement struct {
ImageId string
FileId int64
ImageType int32
Size uint32
Width int32
Height int32
Md5 []byte
Url string
// EffectID show pic effect id.
EffectID int32
Flash bool
// Send
MsgInfo *oidb.MsgInfo
Stream []byte
CompatFace []byte
}
type FriendImageElement struct {
ImageId string
Md5 []byte
Size uint32
Width int32
Height int32
Url string
// Send
MsgInfo *oidb.MsgInfo
Stream []byte
CompatImage *message.NotOnlineImage
Flash bool
}