Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dylanneve1
Copy link
Contributor

Regular Telegram groups (without Topics/Forums enabled) can send message_thread_id when users reply to messages. This was incorrectly being used to create separate session keys like '-123:topic:42', causing each reply chain to get its own conversation context.

Now resolveTelegramForumThreadId only returns a thread ID when the chat is actually a forum (is_forum=true). For regular groups, the thread ID is ignored, ensuring all messages share the same session.

DMs continue to use messageThreadId for thread sessions as before.

@moltbot-barnacle moltbot-barnacle bot added the channel: telegram Channel integration: telegram label Jan 27, 2026
@obviyus obviyus self-assigned this Jan 28, 2026
dylanneve1 and others added 2 commits January 28, 2026 09:19
Regular Telegram groups (without Topics/Forums enabled) can send
message_thread_id when users reply to messages. This was incorrectly
being used to create separate session keys like '-123:topic:42',
causing each reply chain to get its own conversation context.

Now resolveTelegramForumThreadId only returns a thread ID when the
chat is actually a forum (is_forum=true). For regular groups, the
thread ID is ignored, ensuring all messages share the same session.

DMs continue to use messageThreadId for thread sessions as before.
@obviyus obviyus merged commit 14e4b88 into openclaw:main Jan 28, 2026
11 of 23 checks passed
@obviyus
Copy link
Contributor

obviyus commented Jan 28, 2026

Landed via temp rebase onto main.

  • Gate: pnpm lint (fail: src/discord/targets.ts unused imports); build/test not run
  • Land commit: 14e4b88
  • Merge commit: 14e4b88

Thanks @dylanneve1!

danbao pushed a commit to danbao/openclaw that referenced this pull request Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants