1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-06 12:03:50 +08:00
This commit is contained in:
Mrs4s 2020-08-07 15:41:10 +08:00
parent 2ec7f83d38
commit 0564314671

View File

@ -199,7 +199,7 @@ func (bot *CQBot) ToElement(t string, d map[string]string, group bool) (message.
if err != nil { if err != nil {
return nil, err return nil, err
} }
if path.Ext(rawPath) != ".image" { if path.Ext(rawPath) != ".image" && path.Ext(rawPath) != ".cqimg" {
return message.NewImage(b), nil return message.NewImage(b), nil
} }
if len(b) < 20 { if len(b) < 20 {