Repository navigation
feat(telegram): add forum topic support - #357
Closed
Noah-Ribaudo wants to merge 1 commit into
Closed
Noah-Ribaudo wants to merge 1 commit into
Noah-Ribaudo wants to merge 1 commit into
Conversation
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
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. |
Contributor
|
Hi, thanks for the PR! This is the 4th one I am getting today of this feature. I just consolidated 3 big ones. |
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.
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
message_thread_idfrom incoming messagesmessageThreadIdthrough todeliverRepliesmessage_thread_idin all send API calls (text, photo, video, audio, document)MessageThreadIdto context payload for downstream consumersTesting
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_idin both incoming messages and send methods - this PR just wires it through Clawdbot.