Repository navigation
feat(telegram): group chat enhancements - sender identity, observe mode, proactive messaging (#349) - #352
Merged
Conversation
…de, proactive messaging (#349) Phase 1: Fix user identity bug - agent can now see who sent messages in groups - Add _format_group_sender() to prepend sender context: [Group: title] [From: @user (name)] Phase 2: Add observation mode - agent sees all messages but can skip replying - New trigger_mode: "observe" (joins "mention" and "all") - Agent returns [NO_REPLY] marker to suppress response Phase 3: Proactive group messaging with rate limiting - POST /api/agents/{name}/telegram/groups/{chat_id}/messages endpoint - Rate limits: 10/hr/group, 100/hr/agent - MCP tools: list_channel_groups, send_group_message (channels.ts) Co-Authored-By: Claude Opus 4.5 <[email protected]>
…hancements - Add observe trigger mode and sender identity context to requirements - Add proactive messaging endpoint and MCP tools to requirements - Update MCP tool count (62→64) and add channels.ts module to architecture Co-Authored-By: Claude Opus 4.5 <[email protected]>
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
[Group: title] [From: @user (name)]context prefixtrigger_mode: "observe"where agent sees all messages but can return[NO_REPLY]to skip respondingChanges
Backend:
src/backend/adapters/message_router.py—_format_group_sender()helper,[NO_REPLY]marker checksrc/backend/adapters/telegram_adapter.py— observe mode in trigger checksrc/backend/routers/telegram.py—send_telegram_group_messageendpoint with rate limitingFrontend:
src/frontend/src/components/TelegramChannelPanel.vue— "Observe" radio button with tooltipMCP Server:
src/mcp-server/src/tools/channels.ts(NEW) —list_channel_groupsandsend_group_messagetoolssrc/mcp-server/src/client.ts—listTelegramGroups()andsendTelegramGroupMessage()methodsTests:
tests/test_telegram_groups.py(NEW) — 5 API tests for trigger mode validation and proactive messagingDocs:
docs/memory/feature-flows/telegram-integration.md— Updated with Phase 1-3 detailsTest Plan
pytest tests/test_telegram_groups.py -v(12.94s)Closes #349
Generated with Claude Code