mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-06 12:03:50 +08:00
bug fix.
This commit is contained in:
parent
2ec7f83d38
commit
0564314671
@ -199,7 +199,7 @@ func (bot *CQBot) ToElement(t string, d map[string]string, group bool) (message.
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if path.Ext(rawPath) != ".image" {
|
||||
if path.Ext(rawPath) != ".image" && path.Ext(rawPath) != ".cqimg" {
|
||||
return message.NewImage(b), nil
|
||||
}
|
||||
if len(b) < 20 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user