Pular para o conteúdo
Skillpedia
E-mail e mensagens394 mil · #11

configure-channel

O que ela faz

Dá a um agente de IA comandos passo a passo para conectar um canal de chat ao OpenClaw e confirmar que ele funciona. É para quem quer que o OpenClaw converse por meio de um app de mensagens.

Quando usar

  • ✓Quando você quer conectar o OpenClaw a um app de chat, como o Telegram.
  • ✓Quando você precisa verificar o status atual dos seus canais de chat do OpenClaw.
  • ✓Quando você quer mudar quem pode enviar mensagens ao seu bot do OpenClaw sem abrir acesso por engano.

Link da skill

https://github.com/openclaw/openclaw/blob/main/custodian-skills/configure-channel/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/openclaw/openclaw/blob/main/custodian-skills/configure-channel/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Me ajude a conectar meu bot do OpenClaw ao Telegram e verificar se ele me responde.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill verifica quais canais já estão configurados e, em seguida, adiciona o token do bot como uma referência segura, e não como texto puro. Ao final, confirma que o canal funciona com uma mensagem real.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Configure a channel

Never print or persist secret values; channel tokens enter config only as SecretRefs, or through the in-session connect_channel flow where the operator types the secret into a masked prompt. Never hand-edit config files on disk. Every run ends with the observable Prove result or an exact explanation of why it could not be proven.

Gather

openclaw channels list --all
openclaw channels status
openclaw config get channels --json        # "Config path not found" is normal before first setup

Confirm the exact config path before writing — key names differ per channel (channels.telegram.botToken, channels.discord.token, ...):

openclaw config schema --json | jq '.properties.channels.properties.telegram'

Mutate

Confirm the intended account and access changes with the operator before writing. Preserve existing approved allowlist entries, dmPolicy, and groupPolicy unless their replacement or change is explicitly approved; never broaden access to make a check pass.

Preferred shell path — token staged as an env var on the gateway process or in a 0600 file, wired as a SecretRef (Telegram example):

openclaw config set channels.telegram.botToken --ref-provider default --ref-source env --ref-id TELEGRAM_BOT_TOKEN

With the bot connected and DM policy pairing, ask the operator to DM it. Read Your Telegram user id in the pairing reply, or run openclaw logs --follow and read senderUserId in that sender's telegram pairing request entry. Stop following once captured; keep unrelated logs private. If the current policy prevents this flow, use an already verified ID or report the discovery blocker; do not broaden access.

Use the numeric Telegram user ID, not a phone number, username, chat/group ID, or bot ID. In this single-user example, 123456789 is a placeholder: replace it with the verified, approved user ID and retain any other approved entries.

openclaw config set channels.telegram.allowFrom '["123456789"]' --strict-json

Multi-field changes in one validated write:

openclaw config patch --stdin <<'JSON'
{ channels: { telegram: { enabled: true, groupPolicy: "allowlist" } } }
JSON

In-session alternative: call the connect_channel tool action with the channel id — the operator enters the token in a masked prompt, never in chat. Avoid openclaw channels add --token <value>: it puts the secret in argv and process listings.

Repair

openclaw doctor --lint
openclaw channels status --probe

doctor --lint can exit 1 for findings: read the report and continue the remaining checks. Ordinary doctor and doctor --non-interactive can write config/state; do not use them for diagnosis before approval. Apply openclaw doctor --fix --non-interactive only after explicit approval, then re-check status.

Prove

Send one real, clearly labeled test message and confirm delivery from the command result (use --dry-run first to inspect the payload):

openclaw message send --channel telegram --target <chatId> --message "OpenClaw channel test — please ignore" --dry-run
openclaw message send --channel telegram --target <chatId> --message "OpenClaw channel test — please ignore"

If sending fails, report the exact account, permission, destination, or network blocker without exposing credentials.

Report

State the channel and account changed, the exact config paths written (never values), the test destination, and the observed delivery result. List any remaining operator action.

Further reference: https://docs.openclaw.ai/channels/telegram (and the matching page for other channels)

Perguntas frequentes

Meu token do bot será salvo como texto puro?

Não. O token é guardado como referência a uma variável de ambiente ou a um arquivo seguro, então o próprio segredo não é gravado na configuração.

Ela pode mudar quem tem permissão para enviar mensagens ao bot?

Ela mantém as configurações de acesso aprovadas que já existem, a menos que você concorde com uma mudança, e não amplia o acesso só para passar em uma verificação.

Quais apps de chat ela cobre?

Cobre vários apps de chat, incluindo Telegram e Discord, e cada um tem suas próprias configurações.

Detalhes

Descrição original do autor

Configure and prove a chat channel with non-interactive one-liners; secrets only as SecretRefs.

repo: openclaw/openclaw

Popularidade

Estrelas no GitHub
394 mil
Posição no ranking
#11
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas