mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
parent
82ecf19480
commit
008d546f1a
@ -642,7 +642,7 @@ func (bot *CQBot) ConvertElement(spec *onebot.Spec, elem msg.Element, sourceType
|
||||
return bot.reply(spec, elem, sourceType)
|
||||
case "forward":
|
||||
id := elem.Get("id")
|
||||
if id != "" {
|
||||
if id == "" {
|
||||
return nil, errors.New("forward 消息中必须包含 id")
|
||||
}
|
||||
fwdMsg := bot.Client.DownloadForwardMessage(id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user