Mainstream messaging
Telegram troubleshooting
Symptom-first checks for a Telegram bot that is not behaving.
Troubleshooting
Bot does not respond to non mention group messages
- If
requireMention=false, Telegram privacy mode must allow full visibility: BotFather/setprivacy-> Disable, then remove + re-add the bot to the group. openclaw channels statuswarns when config expects unmentioned group messages.openclaw channels status --probechecks explicit numeric group IDs; wildcard"*"cannot be membership-probed.- Quick session test:
/activation always.
Bot not seeing group messages at all
- When
channels.telegram.groupsexists, the group must be listed (or include"*"). - Verify bot membership in the group.
- Review
openclaw logs --followfor skip reasons.
Commands work partially or not at all
- Authorize your sender identity (pairing and/or numeric
allowFrom); command authorization still applies even when group policy isopen. setMyCommands failedwithBOT_COMMANDS_TOO_MUCHmeans the native menu has too many entries; reduce plugin/skill/custom commands or disable native menus.deleteMyCommands/setMyCommandsstartup calls andsendChatActiontyping calls are bounded and retry once through Telegram's transport fallback on request timeout. Persistent network/fetch errors usually mean DNS/HTTPS toapi.telegram.orgis unreachable.
Polling or network instability
- Node 22+ with a custom fetch/proxy can trigger immediate abort behavior if
AbortSignaltypes mismatch. - Some hosts resolve
api.telegram.orgto IPv6 first; broken IPv6 egress causes intermittent API failures. - Logs with
TypeError: fetch failedorNetwork request for 'getUpdates' failed!are retried as recoverable network errors. - During polling startup, OpenClaw reuses the successful startup
getMeprobe for grammY so the runner does not need a secondgetMebefore the firstgetUpdates. - If
deleteWebhookfails with a transient network error during polling startup, OpenClaw continues into long polling instead of making another pre-poll control-plane call. A still-active webhook then surfaces as agetUpdatesconflict; OpenClaw rebuilds the transport and retries webhook cleanup. Polling stall detectedin logs means OpenClaw restarts polling and rebuilds the transport after 120 seconds without completed long-poll liveness by default.openclaw channels status --probeandopenclaw doctorwarn when a running polling account has not completedgetUpdatesafter startup grace, a running webhook account has not completedsetWebhookafter startup grace, or the last successful polling transport activity is stale.- Telegram honors process proxy env for Bot API transport:
HTTP_PROXY,HTTPS_PROXY,ALL_PROXY, and lowercase variants.NO_PROXY/no_proxycan still bypassapi.telegram.org. - If
OPENCLAW_PROXY_URLis set for a service environment and no standard proxy env is present, Telegram uses that URL for Bot API transport too. - If text works but attachments fail with
getaddrinfo EAI_AGAINorENOTFOUND, bare proxy environment variables still leave media downloads subject to local DNS checks. Setchannels.telegram.proxyto your trusted HTTP(S) or SOCKS5 proxy so it resolves media hostnames, or configure a managed network proxy. The proxy endpoint itself must remain locally resolvable and reachable.dangerouslyAllowPrivateNetworkdoes not fix missing DNS. - On VPS hosts with unstable direct egress/TLS, route Telegram API calls through a proxy:
channels:telegram:proxy: socks5://<user>:<password>@proxy-host:1080- Node 22+ defaults to
autoSelectFamily=true(except WSL2). Telegram DNS result order honorsOPENCLAW_TELEGRAM_DNS_RESULT_ORDER, thenchannels.telegram.network.dnsResultOrder, then the process default (for exampleNODE_OPTIONS=--dns-result-order=ipv4first), falling back toipv4firston Node 22+ if none applies. - On WSL2, or when IPv4-only behavior works better, force family selection:
channels:telegram:network: autoSelectFamily: false- RFC 2544 benchmark-range answers (
198.18.0.0/15) are already allowed for Telegram media downloads by default. If a trusted fake-IP or transparent proxy rewritesapi.telegram.orgto some other private/internal/special-use address during media downloads, opt in to the Telegram-only bypass:
channels:telegram:network: dangerouslyAllowPrivateNetwork: true- The same opt-in is available per account at
channels.telegram.accounts.<accountId>.network.dangerouslyAllowPrivateNetwork. - If your proxy resolves Telegram media hosts into
198.18.x.x, leave the dangerous flag off first — that range is already allowed by default.
- Temporary environment overrides:
OPENCLAW_TELEGRAM_DISABLE_AUTO_SELECT_FAMILY=1,OPENCLAW_TELEGRAM_ENABLE_AUTO_SELECT_FAMILY=1,OPENCLAW_TELEGRAM_DNS_RESULT_ORDER=ipv4first. - Validate DNS answers:
dig +short api.telegram.org Adig +short api.telegram.org AAAAMore help: Channel troubleshooting.
Was this useful?