diff --git a/coolq/cqcode.go b/coolq/cqcode.go index 3f864bb..622cd6b 100644 --- a/coolq/cqcode.go +++ b/coolq/cqcode.go @@ -183,6 +183,16 @@ func ToArrayMessage(e []message.IMessageElement, code int64, raw ...bool) (r []M "data": map[string]string{"file": o.Filename, "url": o.Url}, } } + case *message.GroupFlashImgElement: + return []MSG{MSG{ + "type": "image", + "data": map[string]string{"file": o.Filename, "type": "flash"}, + }} + case *message.FriendFlashImgElement: + return []MSG{MSG{ + "type": "image", + "data": map[string]string{"file": o.Filename, "type": "flash"}, + }} case *message.ServiceElement: if isOk := strings.Contains(o.Content, "