status() and disconnect() methods let you inspect and remove these bindings.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Check channel connection status and disconnect routes.
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 exists
console.log(status.routes); // ChannelRoute[]
| Field | Type | Meaning |
|---|---|---|
channel | ChannelName | The platform checked |
connected | boolean | true when at least one route is active |
routes | ChannelRoute[] | All routes for this user and agent |
interface ChannelRoute {
id: string; // unique route identifier
channel: ChannelName; // "whatsapp" | "telegram" | "slack" | "discord"
userAddress: string; // wallet of the user who linked
agentWallet: string; // wallet of the agent receiving messages
accountId: string; // platform-side account or workspace id
threadId: string; // platform thread, channel, or chat id
label?: string; // optional human-readable name
metadata?: object; // platform-specific extra data
createdAt: string; // ISO timestamp
updatedAt: string; // ISO timestamp
}
await sdk.channels.disconnect("telegram", {
userAddress: "0xYourWallet",
agentWallet: "0xa7abfd271130c3ee5c8f8862a123f3697e75af0d",
});