Check channel connection status and disconnect routes.
Once a channel is linked, a route binds a specific platform thread to a Compose agent. A route is the record that says “messages from this Telegram chat / Slack channel / Discord thread / WhatsApp number go to this agent wallet.” The status() and disconnect() methods let you inspect and remove these bindings.
const status = await sdk.channels.status("telegram", { userAddress: "0xYourWallet", agentWallet: "0xa7abfd271130c3ee5c8f8862a123f3697e75af0d",});console.log(status.connected); // boolean — at least one route existsconsole.log(status.routes); // ChannelRoute[]
This removes the matching route. The platform-side connection (bot membership, linked device) is revoked, and messages from that thread will no longer reach the agent. To reconnect, create a new link with link().