Course file
week18_openclaw_channels/README.md
Your agent runs on a server. But right now you can only talk to it via SSH. That's not useful for everyday use.
This week you connect it to Telegram so you can message your agent from your phone.
/newbot
bot (e.g., my_ai_agent_bot)7123456789:AAHq...Copy that token. You'll need it in the next step.
Important: Keep your bot token secret. Anyone with it can control your bot.
SSH into your server:
ssh root@YOUR_IP_ADDRESS
Add the Telegram channel:
openclaw channels add --channel telegram --token YOUR_TELEGRAM_BOT_TOKEN
Replace YOUR_TELEGRAM_BOT_TOKEN with the token from BotFather.
Verify it's connected:
openclaw channels list
You should see Telegram listed.
bot)Your agent should reply. You're now chatting with your own AI agent on Telegram.
Try asking it about the skill you wrote last week.
Your agent needs more abilities. Pick one of these or make up your own:
A skill that shares an inspiring or interesting quote when asked.
A skill that helps organize homework tasks and deadlines.
A skill about a subject you're studying — give it key facts and formulas.
Create the skill:
mkdir -p /opt/openclaw/workspace/skills/useful_skill
nano /opt/openclaw/workspace/skills/useful_skill/SKILL.md
Use the template in useful_skill/SKILL.md in this folder as a starting point.
Test it via Telegram — send a message that should trigger your new skill.
Make your agent more useful:
Update IDENTITY.md — give it a proper introduction
nano /opt/openclaw/workspace/IDENTITY.md
Test from your phone — send it messages throughout the day. What's useful? What's missing?
Share it — send the bot username to a friend or family member. See what they ask it.
reflection.md.SKILL.md filereflection.md filled inBot doesn't respond?
openclaw channels listopenclaw logs --tail 20Responses are slow?
Stuck?
"I connected OpenClaw to Telegram but [describe what happens]. The logs say: [paste log output]. What's wrong?"