feat(telegram): add group chat support — agents as community managers (#297) - #301
Merged
Merged
Conversation
…#297) Enable agents to participate in Telegram group chats via @mentions and reply-to-bot triggers. Per-group configuration for trigger mode (mention-only vs all messages) and welcome messages for new members. Key changes: - Adapter: group detection, @mention parsing from entities, reply-to-bot detection, member event handling (bot added/removed, user join/leave) - Transport: handle my_chat_member and chat_member update types, inject bot_username metadata, updated allowed_updates for webhook registration - DB: new telegram_group_configs table with per-group trigger mode, welcome message config, and active state tracking - Router: CRUD endpoints for group configs with ownership verification - Frontend: group list with trigger mode radio buttons and welcome message configuration in TelegramChannelPanel - Message router: silent rate-limit drops in groups, fresh context per group message (no session history to prevent context bleed), channel-agnostic file upload rate-limit keys Closes #297 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add group chat section to telegram-integration.md covering: - Group message flow diagram with trigger rules - Member event handling (my_chat_member, chat_member) - telegram_group_configs table schema - Group config API and frontend UI - Security notes and known limitations - Update feature flows index Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add /validate-schema and /validate-config skills for weekly maintenance - Add README and DEVELOPMENT_WORKFLOW entries for new validation skills - Add quota deploy/redeploy test agent templates - Add dev announcement for workshop promo Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Apr 12, 2026
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
my_chat_membereventsChanges
telegram_adapter.py): Group detection, @mention parsing from entities, reply-to-bot detection, member event handling, command @botName suffix strippingtelegram_webhook.py): Handlemy_chat_memberandchat_memberupdates, inject_bot_usernamemetadata, updatedallowed_updatesfor webhookmigrations.py,telegram_channels.py,database.py): Newtelegram_group_configstable with trigger mode, welcome message config, active state; cascading deletestelegram.py): CRUD endpoints for group configs with IDOR-safe ownership verificationmessage_router.py): Silent rate-limit drops in groups, fresh context per group message (no session history bleed), channel-agnostic file upload rate keysTelegramChannelPanel.vue): Group list with trigger mode radio buttons and welcome message configurationrequirements.md): Documented TGRAM-GROUP requirementTest Plan
my_chat_membercreates/deactivates group configs on bot add/removeCloses #297
Generated with Claude Code