Skip to content

Add trigger_mode setting for Telegram group configs #327

Closed

Description

@vybe

Summary

Telegram group configs have a trigger_mode field (mention or all) but there's no way to configure it. Currently defaults to mention (only @mentions/replies trigger the agent).

Use Case

Community manager agents need trigger_mode: all to observe every message in a group — not just directed ones.

Scope

  1. Add API endpoint: PUT /api/telegram/agents/{name}/groups/{chat_id} with trigger_mode field
  2. Add UI control in agent Telegram settings (existing group list)

Context

  • Schema exists: telegram_group_configs.trigger_mode
  • DB operation exists: update_group_config(trigger_mode=...)
  • Adapter already checks it: telegram_adapter.py:121-127

Just needs the API + UI surface.

Activity

  1. added a commit that references this issue on Apr 14, 2026
  2. added
    status-in-progress
    on Apr 15, 2026
  3. vybe commented on Apr 15, 2026

    @vybe
    ContributorAuthor

    Closing as already implemented.

    The trigger_mode setting for Telegram group configs was delivered as part of PR #301 (issue #297 - Telegram group chat support).

    Existing implementation:

    • API: PUT /api/agents/{name}/telegram/groups/{id} accepts trigger_mode field
    • UI: Radio buttons in Agent → Channels → Telegram → Groups section:
      • "@mention only" → trigger_mode: 'mention'
      • "All messages" → trigger_mode: 'all'
    • Adapter: telegram_adapter.py:161 checks the setting

    No additional work needed.

  4. removed
    status-in-progress
    on Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions