Telegram: delivery-only notification sink for notifications.telegram_chat_id groups - #417
Open
serxa wants to merge 1 commit into
Open
Telegram: delivery-only notification sink for notifications.telegram_chat_id groups#417serxa wants to merge 1 commit into
serxa wants to merge 1 commit into
Conversation
…only sink When notifications.telegram_chat_id points at a group/supergroup, pushes (the notify tool, async questions/approvals, tg-notify.sh) are delivered there, but inbound messages in that chat must not start an agent turn — it is a one-way notification channel. A DM sink stays interactive (the guard requires a non-private chat), and inline-button callbacks are handled separately so questions/approvals delivered there remain answerable. Adds _is_delivery_only_sink() + unit tests. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
serxa
marked this pull request as ready for review
August 31, 2026 13:12
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.
What
When
notifications.telegram_chat_idpoints at a group/supergroup, deliver notifications there but make it a one-way channel: inbound messages in that chat no longer start an agent turn.Why
A user may want a dedicated Telegram group that only receives notifications (the
notifytool, async questions/approvals, and the out-of-bandtg-notify.shhelper), keeping the DM uncluttered. Today, any message the bot receives in that group would spin up an agent session and reply — undesirable for a delivery-only channel.Behavior
telegram_chat_idat the owner's own chat is unaffected.Changes
nerve/channels/telegram.py: add_is_delivery_only_sink(), consulted at the top of_handle_message.tests/test_telegram_notification_sink.py: unit tests for the predicate.