feat(telegram): forum topic support via message_thread_id#1325
Closed
leyten wants to merge 1 commit intoanthropics:mainfrom
Closed
feat(telegram): forum topic support via message_thread_id#1325leyten wants to merge 1 commit intoanthropics:mainfrom
leyten wants to merge 1 commit intoanthropics:mainfrom
Conversation
Telegram forum supergroups split conversations into topics. Without message_thread_id, the bot's replies always land in the General feed even when the inbound message came from a sub-topic, which is jarring for users running an MCP-driven Claude in a multi-topic group. This change: - Surfaces the inbound topic on the <channel> tag as a message_thread_id attribute (omitted for General / non-forum chats). - Adds an optional message_thread_id parameter to the reply tool and threads it through sendMessage / sendPhoto / sendDocument so replies land in the originating topic. - Updates the reply tool description and the server instructions block so the model knows to pass message_thread_id back through. Backwards compatible: regular groups, DMs, and the General topic of a forum group never carry message_thread_id, so existing flows are unchanged.
|
Thanks for your interest! This repo only accepts contributions from Anthropic team members. If you'd like to submit a plugin to the marketplace, please submit your plugin here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Telegram forum supergroups split conversations into topics. Without message_thread_id, the bot's replies always land in the General feed even when the inbound message came from a sub-topic, which is jarring for users running an MCP-driven Claude in a multi-topic group.
This change:
Backwards compatible: regular groups, DMs, and the General topic of a forum group never carry message_thread_id, so existing flows are unchanged.