Lesson 9 of 19

Connect Telegram to OpenClaw

Monthly cost: $0 (OpenClaw is free and open source) Expected time: ~15–20 minutes

The Main Event

This is where your server becomes an AI assistant. You installed OpenClaw in Lesson 7 — now you'll connect it to Telegram so you can chat with it from your phone.

Step 1: Connect Telegram

If you ran openclaw onboard in Lesson 7 and skipped the messaging channel, you can re-run it:

ssh claw@YOUR_SERVER_IP
openclaw onboard

Follow the wizard to:

  1. Select Telegram as your channel
  2. Paste your bot token from Lesson 8
  3. OpenClaw will automatically start polling for messages

Step 2: Send Your First Message

Open Telegram and send a message to your bot. Something simple:

Hello, are you there?

Watch the logs in real time to confirm the message arrives:

journalctl --user -u openclaw-gateway -n 10 -f

Press Ctrl+C to stop following the logs.

Troubleshooting

When You're Done

Further Reading