Skip to content

feat(telegram): add forum topic support - #357

Closed
Noah-Ribaudo wants to merge 1 commit into
openclaw:mainfrom
Noah-Ribaudo:telegram-forum-topics
Closed

Noah-Ribaudo wants to merge 1 commit into
openclaw:mainfrom
Noah-Ribaudo:telegram-forum-topics

Conversation

@Noah-Ribaudo

Copy link
Copy Markdown

Summary

Adds support for Telegram forum topics (supergroups with topics enabled). When a message comes from a topic, replies are now sent back to the same topic instead of the general channel.

Changes

  • Capture message_thread_id from incoming messages
  • Pass messageThreadId through to deliverReplies
  • Include message_thread_id in all send API calls (text, photo, video, audio, document)
  • Add MessageThreadId to context payload for downstream consumers

Testing

Tested in a Telegram supergroup with forum topics enabled. Messages sent from a topic now receive replies in the same topic instead of the general channel.

Related

Grammy (the Telegram library) already supports message_thread_id in both incoming messages and send methods - this PR just wires it through Clawdbot.

Adds support for Telegram forum topics (supergroups with topics enabled).
When a message comes from a topic, replies are now sent back to the same
topic instead of the general channel.

Changes:
- Capture message_thread_id from incoming messages
- Pass messageThreadId through to deliverReplies
- Include message_thread_id in all send API calls (text, photo, video, audio, document)
- Add MessageThreadId to context payload for downstream consumers
@steipete

steipete commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

Thanks! This is the same core wiring (capture message_thread_id + pass through deliverReplies + send*). We landed a more complete integrated version on main: 8011243 (plus follow-ups d7bc5b5, 5950255) which also adds topic-isolated session keys (per topic memory), threads typing indicators, adds IsForum/MessageThreadId context, tests, and docs. Closing as superseded by main.

@steipete steipete closed this Jan 7, 2026
@steipete

steipete commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

Hi, thanks for the PR! This is the 4th one I am getting today of this feature. I just consolidated 3 big ones.
Hop on Disccord and let's chat next time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants