Commit a9753c44 authored by Him188's avatar Him188

Fix sendMessage

parent e1786d95
...@@ -153,7 +153,7 @@ internal abstract class QQAndroidBotBase constructor( ...@@ -153,7 +153,7 @@ internal abstract class QQAndroidBotBase constructor(
getGroup(source.groupId).checkBotPermissionOperator() getGroup(source.groupId).checkBotPermissionOperator()
} }
println(source._miraiContentToString()) // println(source._miraiContentToString())
source.ensureSequenceIdAvailable() source.ensureSequenceIdAvailable()
network.run { network.run {
......
...@@ -284,7 +284,7 @@ internal class MessageSvc { ...@@ -284,7 +284,7 @@ internal class MessageSvc {
messageRandom = Random.nextInt().absoluteValue, messageRandom = Random.nextInt().absoluteValue,
senderId = client.uin, senderId = client.uin,
toUin = toUin, toUin = toUin,
time = currentTimeSeconds + client.timeDifference, time = currentTimeSeconds,
groupId = 0, groupId = 0,
sequenceId = client.atomicNextMessageSequenceId(), sequenceId = client.atomicNextMessageSequenceId(),
originalMessage = message originalMessage = message
...@@ -335,7 +335,7 @@ internal class MessageSvc { ...@@ -335,7 +335,7 @@ internal class MessageSvc {
messageRandom = Random.nextInt().absoluteValue, messageRandom = Random.nextInt().absoluteValue,
senderId = client.uin, senderId = client.uin,
toUin = Group.calculateGroupUinByGroupCode(groupCode), toUin = Group.calculateGroupUinByGroupCode(groupCode),
time = currentTimeSeconds + client.timeDifference, time = currentTimeSeconds,
groupId = groupCode, groupId = groupCode,
originalMessage = message//, originalMessage = message//,
// sourceMessage = message // sourceMessage = message
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment