Configure multiple messaging platform accounts for OpenClaw. Use when the user wants to add or configure additional accounts for Telegram, WhatsApp, Discord,...
Guide users through configuring multiple accounts for messaging platforms in OpenClaw.
Ask the user which platform they want to configure:
"你想配置哪个平台的多账号?支持的选项:Telegram、WhatsApp、Discord、Slack、Signal 等。"
For each account, collect:
Suggest meaningful names based on use case:
Use gateway config.get to retrieve current configuration.
Structure the configuration following this pattern:
{
"bindings": [
{
"agentId": "main",
"match": {
"channel": "<platform>",
"accountId": "<account-id>"
}
}
],
"channels": {
"<platform>": {
"enabled": true,
"accounts": {
"<account-id>": {
"name": "<Display Name>",
"enabled": true,
"dmPolicy": "allowlist",
"allowFrom": ["<user-id>"],
"botToken": "<token>",
"groupPolicy": "open",
"streaming": "block"
}
}
}
}
}
Use gateway config.patch to apply the new configuration.
Confirm the configuration was applied successfully and provide next steps.
Each account needs a binding entry:
{
"agentId": "main",
"match": {
"channel": "telegram",
"accountId": "work"
}
}
| Property | Type | Description |
|---|---|---|
| name | string | Display name for the account |
| enabled | boolean | Whether the account is active |
| dmPolicy | string | "allowlist", "blocklist", or "open" |
| allowFrom | array | List of allowed sender IDs (for allowlist) |
| botToken | string | Platform-specific token |
| groupPolicy | string | "open", "closed", or "admin-only" |
| streaming | string | "block" or "allow" |
User provides:
Configuration to add:
{
"bindings": [
{
"agentId": "main",
"match": {
"channel": "telegram",
"accountId": "work"
}
}
],
"channels": {
"telegram": {
"enabled": true,
"accounts": {
"work": {
"name": "Work",
"enabled": true,
"dmPolicy": "allowlist",
"allowFrom": ["USER_ID"],
"botToken": "123456:ABC-DEF...",
"groupPolicy": "open",
"streaming": "block"
}
}
}
}
}
ZIP package — ready to use