feat: support for customizing the timestamp of fake forwardMsg

This commit is contained in:
pk5ls20
2024-10-26 04:06:42 +08:00
parent 730c928f91
commit 640fb75f74
3 changed files with 5 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ export class PacketMsgBuilder {
divSeq: node.groupId ? undefined : 4,
msgId: crypto.randomBytes(4).readUInt32LE(0),
sequence: crypto.randomBytes(4).readUInt32LE(0),
timeStamp: Math.floor(Date.now() / 1000),
timeStamp: +node.time.toString().substring(0, 10),
field7: BigInt(1),
field8: 0,
field9: 0,