Telegram-user: skip last-route for groups

This commit is contained in:
Muhammed Mukhthar CM 2026-01-23 06:57:02 +00:00
parent b04142bfd5
commit 7ce441260b

View File

@ -567,14 +567,16 @@ export function createTelegramUserMessageHandler(params: TelegramUserHandlerPara
runtime.error?.(`telegram-user failed to update session meta: ${String(err)}`); runtime.error?.(`telegram-user failed to update session meta: ${String(err)}`);
}); });
await core.channel.session.updateLastRoute({ if (!isGroup) {
storePath, await core.channel.session.updateLastRoute({
sessionKey: route.mainSessionKey, storePath,
channel: "telegram-user", sessionKey: route.mainSessionKey,
to: `telegram-user:${senderId}`, channel: "telegram-user",
accountId: route.accountId, to: `telegram-user:${senderId}`,
ctx: ctxPayload, accountId: route.accountId,
}); ctx: ctxPayload,
});
}
let hasReplied = false; let hasReplied = false;
const replyTarget = const replyTarget =