Skip to content

Commit

Permalink
fix: 修复语音无法播放以及私聊无法发送
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Aug 25, 2024
1 parent 6e983ba commit 12b4d6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions coolq/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func (bot *CQBot) SendGroupMessage(groupID int64, m *message.SendingMessage) (in
}
m.Elements = newElem
bot.checkMedia(newElem, groupID)
ret, err := bot.Client.SendGroupMessage(uint32(groupID), m.Elements)
ret, err := bot.Client.SendGroupMessage(uint32(groupID), m.Elements, false)
if err != nil || ret == nil {
if errors.Is(err, sign.VersionMismatchError) {
log.Warnf("群 %v 发送消息失败: 签名与当前协议版本不对应.", groupID)
Expand Down Expand Up @@ -385,7 +385,7 @@ func (bot *CQBot) SendPrivateMessage(target int64, groupID int64, m *message.Sen

//session, ok := bot.tempSessionCache.Load(target)
var id int32 = -1
ret, _ := bot.Client.SendPrivateMessage(uint32(groupID), m.Elements)
ret, _ := bot.Client.SendPrivateMessage(uint32(target), m.Elements, false)
if ret != nil {
id = bot.InsertPrivateMessage(ret, source)
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/FloatTech/sqlite v1.6.3
github.com/LagrangeDev/LagrangeGo v0.0.0-20240819212844-2dda86271a2c
github.com/LagrangeDev/LagrangeGo v0.0.0-20240825050647-d4c1927bf305
github.com/Microsoft/go-winio v0.6.2-0.20230724192519-b29bbd58a65a
github.com/RomiChan/syncx v0.0.0-20240418144900-b7402ffdebc7
github.com/RomiChan/websocket v1.4.3-0.20220227141055-9b2c6168c9c5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/FloatTech/sqlite v1.6.3 h1:MQkqBNlkPuCoKQQgoNLuTL/2Ci3tBTFAnVYBdD0Wy4
github.com/FloatTech/sqlite v1.6.3/go.mod h1:zFbHzRfB+CJ+VidfjuVbrcin3DAz283F7hF1hIeHzpY=
github.com/FloatTech/ttl v0.0.0-20230307105452-d6f7b2b647d1 h1:g4pTnDJUW4VbJ9NvoRfUvdjDrHz/6QhfN/LoIIpICbo=
github.com/FloatTech/ttl v0.0.0-20230307105452-d6f7b2b647d1/go.mod h1:fHZFWGquNXuHttu9dUYoKuNbm3dzLETnIOnm1muSfDs=
github.com/LagrangeDev/LagrangeGo v0.0.0-20240819212844-2dda86271a2c h1:80qtiWy/eGAv2ritpHZyIDiOTH8ueDrpvGDBlAct6Ws=
github.com/LagrangeDev/LagrangeGo v0.0.0-20240819212844-2dda86271a2c/go.mod h1:qK/l75YuMYdJWfPcxPhfjybJdXD4kzMFvcbKlvdAoa0=
github.com/LagrangeDev/LagrangeGo v0.0.0-20240825050647-d4c1927bf305 h1:JL4Ix8lG92jcS+NNaEItOLgScbmqAJ58OgUEG0qBn6o=
github.com/LagrangeDev/LagrangeGo v0.0.0-20240825050647-d4c1927bf305/go.mod h1:qK/l75YuMYdJWfPcxPhfjybJdXD4kzMFvcbKlvdAoa0=
github.com/Microsoft/go-winio v0.6.2-0.20230724192519-b29bbd58a65a h1:aU1703IHxupjzipvhu16qYKLMR03e+8WuNR+JMsKfGU=
github.com/Microsoft/go-winio v0.6.2-0.20230724192519-b29bbd58a65a/go.mod h1:OZqLNXdYJHmx7aqq/T6wAdFEdoGm5nmIfC4kU7M8P8o=
github.com/RomiChan/protobuf v0.1.1-0.20230204044148-2ed269a2e54d h1:/Xuj3fIiMY2ls1TwvPKmaqQrtJsPY+c9s+0lOScVHd8=
Expand Down

0 comments on commit 12b4d6e

Please sign in to comment.