mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-08 04:55:55 +08:00
fix #141.
This commit is contained in:
parent
51696e8054
commit
c9a914b5d5
@ -130,7 +130,7 @@ func (bot *CQBot) SendGroupMessage(groupId int64, m *message.SendingMessage) int
|
|||||||
}
|
}
|
||||||
m.Elements = newElem
|
m.Elements = newElem
|
||||||
ret := bot.Client.SendGroupMessage(groupId, m)
|
ret := bot.Client.SendGroupMessage(groupId, m)
|
||||||
if ret.Id == -1 {
|
if ret == nil || ret.Id == -1 {
|
||||||
log.Warnf("警告: 群 %v 消息发送失败, 账号可能被风控.", groupId)
|
log.Warnf("警告: 群 %v 消息发送失败, 账号可能被风控.", groupId)
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user