mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 22:04:31 +00:00
Revert "fix: handle forum/topics in Telegram DM thread routing (#17980)"
This reverts commit e20b87f1ba.
This commit is contained in:
@@ -101,15 +101,13 @@ export function resolveTelegramThreadSpec(params: {
|
||||
scope: params.isForum ? "forum" : "none",
|
||||
};
|
||||
}
|
||||
// DM with forum/topics enabled — treat like a forum, not a flat DM
|
||||
if (params.isForum && params.messageThreadId != null) {
|
||||
return { id: params.messageThreadId, scope: "forum" };
|
||||
if (params.messageThreadId == null) {
|
||||
return { scope: "dm" };
|
||||
}
|
||||
// Preserve thread ID for non-forum DM threads (session routing, #8891)
|
||||
if (params.messageThreadId != null) {
|
||||
return { id: params.messageThreadId, scope: "dm" };
|
||||
}
|
||||
return { scope: "dm" };
|
||||
return {
|
||||
id: params.messageThreadId,
|
||||
scope: "dm",
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user