Skip to content

Telegram multi-account bindings not routing to correct agent #803

@dbhurley

Description

@dbhurley

Problem

When configuring multiple Telegram bot accounts with bindings, messages from non-default bots are still routed to the default agent instead of the bound agent.

Config

"telegram": {
  "enabled": true,
  "accounts": {
    "steve": {
      "botToken": "...",
      "dmPolicy": "pairing"
    },
    "opie": {
      "botToken": "...",
      "dmPolicy": "pairing"
    }
  }
},
"bindings": [
  {
    "agentId": "opie",
    "match": { "provider": "telegram", "accountId": "opie" }
  }
]

Expected

Messages to the opie Telegram bot should route to agent:opie:... sessions.

Actual

All Telegram messages route to agent:main:... regardless of which bot received them.

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions