Commit c9a914b5 authored by Mrs4s's avatar Mrs4s

fix #141.

parent 51696e80
......@@ -130,7 +130,7 @@ func (bot *CQBot) SendGroupMessage(groupId int64, m *message.SendingMessage) int
}
m.Elements = newElem
ret := bot.Client.SendGroupMessage(groupId, m)
if ret.Id == -1 {
if ret == nil || ret.Id == -1 {
log.Warnf("警告: 群 %v 消息发送失败, 账号可能被风控.", groupId)
return -1
}
......
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