Commit 26c81cb9 authored by Him188's avatar Him188

Fix longMessage

parent bb6cac32
...@@ -554,6 +554,7 @@ internal abstract class QQAndroidBotBase constructor( ...@@ -554,6 +554,7 @@ internal abstract class QQAndroidBotBase constructor(
time = time.toInt(), time = time.toInt(),
random = Random.nextInt().absoluteValue.toUInt(), random = Random.nextInt().absoluteValue.toUInt(),
groupCode = groupCode, groupCode = groupCode,
botId = this@QQAndroidBotBase.id,
botMemberNameCard = group.botAsMember.nameCardOrNick botMemberNameCard = group.botAsMember.nameCardOrNick
) )
......
...@@ -47,6 +47,7 @@ internal fun MessageChain.calculateValidationDataForGroup( ...@@ -47,6 +47,7 @@ internal fun MessageChain.calculateValidationDataForGroup(
time: Int, time: Int,
random: UInt, random: UInt,
groupCode: Long, groupCode: Long,
botId: Long,
botMemberNameCard: String botMemberNameCard: String
): MessageValidationData { ): MessageValidationData {
val richTextElems = this.toRichTextElems(forGroup = true, withGeneralFlags = false) val richTextElems = this.toRichTextElems(forGroup = true, withGeneralFlags = false)
...@@ -55,7 +56,7 @@ internal fun MessageChain.calculateValidationDataForGroup( ...@@ -55,7 +56,7 @@ internal fun MessageChain.calculateValidationDataForGroup(
msg = listOf( msg = listOf(
MsgComm.Msg( MsgComm.Msg(
msgHead = MsgComm.MsgHead( msgHead = MsgComm.MsgHead(
fromUin = 1040400290, fromUin = botId,
msgSeq = sequenceId, msgSeq = sequenceId,
msgTime = time, msgTime = time,
msgUid = 0x01000000000000000L or random.toLong(), msgUid = 0x01000000000000000L or random.toLong(),
......
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