diff --git a/coolq/bot.go b/coolq/bot.go index 53ced12f9..027d94373 100644 --- a/coolq/bot.go +++ b/coolq/bot.go @@ -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) @@ -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) } diff --git a/go.mod b/go.mod index 7b2608ec9..6d7cb937b 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 483344d4c..433570cf3 100644 --- a/go.sum +++ b/go.sum @@ -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=