How to connect and troubleshoot Telegram and WhatsApp channels in OpenClaw on Hostinger VPS

Updated 2 days ago

This article explains how to connect Telegram and WhatsApp messaging channels to OpenClaw on your Hostinger VPS, and how to resolve common connection issues.

Connecting channels during deployment

When deploying OpenClaw from hPanel, you can configure Telegram and WhatsApp directly in the deployment form.

  1. In hPanel, go to VPSManageOS & PanelOperating System  → Docker Application.

  2. Search for OpenClaw and click Deploy.

  3. Copy the required Gateway Token field.

  4. To connect Telegram, enter your bot token in the Telegram bot token field. You can get this token from @BotFather on Telegram.

  5. To connect WhatsApp, enter your phone number with country code in the WhatsApp number field (e.g., +1234567890).
  6. Click Deploy.

 

NOTE The WhatsApp number and Telegram bot token fields are optional. You can leave them empty and connect channels later through the OpenClaw dashboard.

 

 

After deployment, you still need to complete the WhatsApp pairing by scanning a Quick Response (QR) code. See the “Connecting WhatsApp after deployment” section below.

Connecting Telegram after deployment

If you did not add your Telegram bot token during deployment, or want to connect a different bot:

  1. Open the OpenClaw dashboard by clicking Open next to your OpenClaw container in hPanel.
  2. Go to Channels in the left sidebar

  3. In the Telegram section, add your bot token to the OpenClaw configuration.
  4. Scroll down, and click Save. The gateway will restart. Wait for it to finish.

Once connected, the Telegram section displays the following status indicators:

  • Configured – Whether the bot token is set.
  • Running – Whether the Telegram channel is active.
  • Mode – The polling method (typically “polling”).
  • Last start – Time since the channel started.
  • Last probe – Time since the last health check.
  • Probe ok – Confirms the channel is responding.

Connecting WhatsApp after deployment

OpenClaw connects to WhatsApp using WhatsApp Web. You can use a regular WhatsApp account — WhatsApp Business is not required.

NOTE OpenClaw recommends using a separate phone number for WhatsApp when possible. Personal number setups are supported, but a dedicated number provides better reliability.

To connect or complete WhatsApp pairing:

  1. Open the OpenClaw dashboard.
  2. Go to Channels in the left sidebar.
  3. In the WhatsApp section, click Show QR. A QR code appears.


  4. On your phone, open WhatsApp and go to SettingsLinked DevicesLink a Device.
  5. Scan the QR code displayed in the OpenClaw dashboard.
  6. Wait for the connection to complete. The status indicators update to show Linked: Yes and Connected: Yes.

The WhatsApp section displays these status indicators:

  • Configured – Whether WhatsApp is set up.
  • Linked – Whether a WhatsApp account is linked.
  • Running – Whether the WhatsApp channel is active.
  • Connected – Whether there is an active connection to WhatsApp servers.
  • Last connect – Time of the last successful connection.
  • Last message – Time of the last message received.
  • Auth age – How long the current authentication has been valid.

Troubleshooting Telegram issues

Telegram pairing loop

If Telegram keeps sending new pairing codes instead of completing the connection, restart the OpenClaw container.

Using hPanel:

  1. Go to VPSManageDocker Containers in hPanel.
  2. Find your OpenClaw container.
  3. Click the three-dot menu and select Restart.

[Screenshot: hPanel Docker Containers page showing the OpenClaw container with the three-dot menu expanded, displaying Restart, Update, Stop, View logs, and Delete options]

Using SSH:

Run the following command, replacing container_name with the correct name of your docker container:

docker restart [container_name]

Telegram bot does not respond

If your Telegram bot is connected but not responding to messages:

  1. Open the OpenClaw dashboard and check the Health indicator in the top-right corner. It should display Health OK.
  2. Go to Channels and verify the Telegram section shows Running: Yes and Probe ok.
  3. If the probe status shows an error, restart the OpenClaw container using the steps above.

Troubleshooting WhatsApp issues

WhatsApp shows “not linked”

If the WhatsApp channel shows not linked after previously being connected:

  1. In the OpenClaw dashboard, go to Channels.
  2. In the WhatsApp section, click Logout to clear the previous session.
  3. Click Show QR to generate a new QR code.
  4. On your phone, go to WhatsApp → SettingsLinked DevicesLink a Device and scan the new QR code.

WhatsApp QR code keeps refreshing

If the QR code refreshes repeatedly without completing the pairing:

  1. On your phone, open WhatsApp and go to SettingsLinked Devices.
  2. Log out from all linked devices.
  3. In the OpenClaw dashboard, click Logout in the WhatsApp section to clear any pending sessions.
  4. Restart the OpenClaw container using hPanel or the docker restart command.
  5. Click Show QR immediately after the container restarts and scan the code promptly — QR codes expire quickly.

 

NOTES

  • WhatsApp pairing requests expire after 1 hour.
  • OpenClaw limits pending pairing requests to 3 per channel. Exceeding this limit can cause pairing loops.

WhatsApp connection drops frequently

If the WhatsApp connection is unstable:

  1. Keep the phone running WhatsApp connected to the internet (Wi-Fi recommended).
  2. Keep the phone charged to prevent disconnections from battery-saving features.
  3. If you use a personal number, check that no other WhatsApp Web sessions conflict with the OpenClaw connection.

Viewing logs

To investigate persistent issues, check the OpenClaw logs:

  1. In hPanel, go to VPSManageDocker Containers.

  2. Find your OpenClaw container and click the three-dot menu.
  3. Select View logs.

Your Telegram and WhatsApp channels are now ready to use with OpenClaw. Once connected, you can start receiving and responding to messages through your AI assistant.