Skip to content

Commit

Permalink
fix #562.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrs4s committed Jan 18, 2021
1 parent 297284f commit 0bd5afb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions coolq/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,7 @@ func (bot *CQBot) SendGroupMessage(groupId int64, m *message.SendingMessage) int
ret := bot.Client.SendGroupMessage(groupId, m, ForceFragmented)
if ret == nil || ret.Id == -1 {
log.Warnf("群消息发送失败: 账号可能被风控.")
if !ForceFragmented {
log.Warnf("将尝试分片发送...")
ret = bot.Client.SendGroupMessage(groupId, m, true)
}
if ret == nil || ret.Id == -1 {
return -1
}
return -1
}
return bot.InsertGroupMessage(ret)
}
Expand Down

0 comments on commit 0bd5afb

Please sign in to comment.