1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-06 03:53:50 +08:00
This commit is contained in:
Mrs4s 2020-08-20 02:30:44 +08:00
parent 51696e8054
commit c9a914b5d5

View File

@ -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
}