mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 11:30:13 +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(),
|
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(
|
|||||||
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(
|
|||||||
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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user