mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-07 12:43:31 +08:00
fix message.
This commit is contained in:
parent
620ecdbdbb
commit
36532a8782
@ -911,6 +911,9 @@ func (bot *CQBot) makeImageOrVideoElem(d map[string]string, video, group bool) (
|
|||||||
}
|
}
|
||||||
info, err := os.Stat(fu.Path)
|
info, err := os.Stat(fu.Path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if !os.IsExist(err) {
|
||||||
|
return nil, errors.New("file not found")
|
||||||
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if video {
|
if video {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user