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