solution channel high linux macos windows telegram
Telegram: network request failed (sendMessage/sendChatAction) due to IPv6/DNS
Fix Telegram API failures by addressing IPv6-first DNS on hosts without IPv6 egress, or by fixing outbound DNS/HTTPS reachability to api.telegram.org.
By CoClaw Team •
Error signatures: HttpError: Network request for 'sendMessage' failed | HttpError: Network request for 'sendChatAction' failed | api.telegram.org
Symptoms
- Gateway logs show errors like:
HttpError: Network request for 'sendMessage' failedHttpError: Network request for 'sendChatAction' failed
setMyCommandsmay also fail on startup.
Cause
Most often:
api.telegram.orgresolves to IPv6 first, but your host has no IPv6 egress, or- outbound DNS/HTTPS to
api.telegram.orgis blocked/restricted on the gateway host.
Fix
1) Probe Telegram from OpenClaw
On the gateway host:
openclaw channels status --probe
If Telegram probes fail, continue below.
2) If your host does not support IPv6, force IPv4 (common on VPS)
Options (pick one that matches your environment):
- Enable IPv6 on the host/network, or
- Configure the host to prefer IPv4 / disable IPv6 DNS resolution for this environment.
Then restart the gateway.
3) If you’re on a restricted network
Run the gateway on a host with reliable egress to Telegram (VPS), or use a network path that can reach api.telegram.org.
Verify
openclaw channels status --probereports Telegram healthy.- A test Telegram message triggers a response.