Telegram-user: skip last-route for groups
This commit is contained in:
parent
b04142bfd5
commit
7ce441260b
@ -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 =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user