mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 03:16:05 +08:00
Fix longMessage
This commit is contained in:
parent
bb6cac3261
commit
26c81cb93b
@ -554,6 +554,7 @@ internal abstract class QQAndroidBotBase constructor(
|
||||
time = time.toInt(),
|
||||
random = Random.nextInt().absoluteValue.toUInt(),
|
||||
groupCode = groupCode,
|
||||
botId = this@QQAndroidBotBase.id,
|
||||
botMemberNameCard = group.botAsMember.nameCardOrNick
|
||||
)
|
||||
|
||||
|
@ -47,6 +47,7 @@ internal fun MessageChain.calculateValidationDataForGroup(
|
||||
time: Int,
|
||||
random: UInt,
|
||||
groupCode: Long,
|
||||
botId: Long,
|
||||
botMemberNameCard: String
|
||||
): MessageValidationData {
|
||||
val richTextElems = this.toRichTextElems(forGroup = true, withGeneralFlags = false)
|
||||
@ -55,7 +56,7 @@ internal fun MessageChain.calculateValidationDataForGroup(
|
||||
msg = listOf(
|
||||
MsgComm.Msg(
|
||||
msgHead = MsgComm.MsgHead(
|
||||
fromUin = 1040400290,
|
||||
fromUin = botId,
|
||||
msgSeq = sequenceId,
|
||||
msgTime = time,
|
||||
msgUid = 0x01000000000000000L or random.toLong(),
|
||||
|
Loading…
Reference in New Issue
Block a user