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)}`);
});
await core.channel.session.updateLastRoute({
storePath,
sessionKey: route.mainSessionKey,
channel: "telegram-user",
to: `telegram-user:${senderId}`,
accountId: route.accountId,
ctx: ctxPayload,
});
if (!isGroup) {
await core.channel.session.updateLastRoute({
storePath,
sessionKey: route.mainSessionKey,
channel: "telegram-user",
to: `telegram-user:${senderId}`,
accountId: route.accountId,
ctx: ctxPayload,
});
}
let hasReplied = false;
const replyTarget =