This commit is contained in:
ikechan8370 2025-02-12 15:25:47 +08:00
parent b95bacc7e8
commit 4a3090c6f9
3 changed files with 20 additions and 11 deletions

View file

@ -5,7 +5,7 @@ export async function getChatHistoryGroup (e, num) {
// if (e.adapter === 'shamrock') {
// return await e.group.getChatHistory(0, num, false)
// } else {
let latestChats = await e.group.getChatHistory(0, 1)
let latestChats = await e.group.getChatHistory(e.seq || e.message_id, 1)
if (latestChats.length > 0) {
let latestChat = latestChats[0]
if (latestChat) {