mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
feat: 引用消息
This commit is contained in:
parent
c4b34c2099
commit
3cf47884b3
@ -138,7 +138,7 @@ async function forwardMessage(message: MessageElement) {
|
||||
message_data["data"]["file"] = element.picElement.sourcePath
|
||||
} else if (element.replyElement) {
|
||||
message_data["type"] = "reply"
|
||||
message_data["data"]["reply"] = element.replyElement.sourceMsgIdInRecords
|
||||
message_data["data"]["id"] = msgHistory.find(msg => msg.raw.msgSeq == element.replyElement.replayMsgSeq)?.raw.msgId
|
||||
}
|
||||
onebot_message_data.message.push(message_data)
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ export type MessageElement = {
|
||||
senderUid: string, // 原消息发送者QQ号
|
||||
sourceMsgIsIncPic: boolean; // 原消息是否有图片
|
||||
sourceMsgText: string;
|
||||
sourceMsgIdInRecords: string; // 原消息id
|
||||
replayMsgSeq: string; // 源消息的msgSeq,可以通过这个找到源消息的msgId
|
||||
},
|
||||
textElement: {
|
||||
atType: AtType
|
||||
|
Loading…
x
Reference in New Issue
Block a user