Commit 05643146 authored by Mrs4s's avatar Mrs4s

bug fix.

parent 2ec7f83d
...@@ -199,7 +199,7 @@ func (bot *CQBot) ToElement(t string, d map[string]string, group bool) (message. ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment