#Issue connecting Openclaw to Telegram Group
1 messages · Page 1 of 1 (latest)
First thing: please paste your openclaw --version — version mismatches cause a lot of weird channel issues.
For Telegram groups, the usual gotchas are:
-
Telegram is token config, not login
- It does not use
openclaw channels login telegram. - Configure
channels.telegram.botTokenorTELEGRAM_BOT_TOKEN.
- It does not use
-
DM pairing does not authorize groups
- Group auth needs config allowlists.
- Put Telegram user IDs in
allowFrom/groupAllowFrom. - Put the negative group chat ID like
-100123...underchannels.telegram.groups.
-
Privacy mode
- If the bot should see normal group messages, disable BotFather privacy mode or make the bot a group admin.
- After changing privacy mode, remove + re-add the bot to the group.
A safe starting config:
{
channels: {
telegram: {
enabled: true,
botToken: "123:abc",
dmPolicy: "pairing",
allowFrom: ["YOUR_NUMERIC_TELEGRAM_USER_ID"],
groups: {
"-100YOUR_GROUP_CHAT_ID": {
requireMention: true
}
}
}
}
}
Then restart gateway and test by mentioning the bot in the group.
Useful docs:
https://docs.openclaw.ai/channels/telegram
https://docs.openclaw.ai/channels/groups
If it still fails, paste:
openclaw --version
openclaw status --all
And the relevant channels.telegram config block with the bot token redacted.
um my commands in cli have randomly stopped working.
didnt change/move any openclaw files
Hmm — first thing, please paste the exact command + exact error/output.
Run these if you can:
openclaw --version
openclaw status --all
openclaw gateway status
openclaw doctor
If even openclaw itself won’t run, paste:
command -v openclaw
node -v
npm -v
Also tell me whether you’re using a global install or running from source with pnpm openclaw ....
Docs for the usual triage flow: https://docs.openclaw.ai/help/faq
openclaw : The term 'openclaw' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:1
- openclaw --version
-
+ CategoryInfo : ObjectNotFound: (openclaw:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
That error means PowerShell can’t find the CLI at all — usually either OpenClaw isn’t installed in that environment, or npm’s global bin folder fell out of your PATH.
If you installed/running OpenClaw in WSL2, don’t run this in Windows PowerShell — open your Ubuntu/WSL terminal and run:
openclaw --version
If you meant native Windows, run this in PowerShell:
node -v
npm -v
npm prefix -g
Get-ChildItem (npm prefix -g) -Filter "openclaw*"
If openclaw.cmd shows up, try:
$prefix = npm prefix -g
$env:Path = "$prefix;$env:Path"
openclaw --version
If that fixes it, add the npm prefix -g path permanently to Windows Environment Variables → Path.
If no openclaw* file shows up, reinstall:
npm install -g openclaw@latest
openclaw --version
i changed path for claude code
Yep — that would do it. You probably overwrote your PATH while adding Claude Code instead of appending to it, so PowerShell no longer sees npm’s global command folder where openclaw.cmd lives.
In PowerShell, run:
node -v
npm -v
npm prefix -g
Test-Path "$((npm prefix -g))\openclaw.cmd"
If that last line says True, temporary fix:
$npmGlobal = npm prefix -g
$env:Path = "$npmGlobal;$env:Path"
openclaw --version
Then add that npm prefix -g folder back to your User PATH permanently. It’s often:
C:\Users\<you>\AppData\Roaming\npm
Make sure you append Claude Code’s path, not replace the existing PATH.
If node/npm also fail, your Node path got removed too — add this back as well:
C:\Program Files\nodejs
Install docs: https://docs.openclaw.ai/install
how to reset path
Don’t fully “reset” PATH if you can avoid it — safer to add back the missing entries.
GUI way
- Start menu → search “Environment Variables”
- Open Edit environment variables for your account
- Select Path → Edit
- Add these if missing:
C:\Users\<your-user>\AppData\Roaming\npm
C:\Program Files\nodejs
Also keep/add your Claude Code path. Don’t replace the whole list with only Claude.
Close and reopen PowerShell, then test:
node -v
npm -v
openclaw --version
PowerShell safe add
This adds the common Node/npm paths to your User PATH:
$toAdd = @("$env:APPDATA\npm", "C:\Program Files\nodejs")
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
$parts = $userPath -split ";" | Where-Object { $_ }
foreach ($p in $toAdd) {
if (($parts -notcontains $p) -and (Test-Path $p)) {
$parts += $p
}
}
[Environment]::SetEnvironmentVariable("Path", ($parts -join ";"), "User")
Then open a new PowerShell window.
cant seem to find npm file
No worries — there usually isn’t a plain “npm file” to find.
On Windows it’s usually:
C:\Program Files\nodejs\npm.cmd
And OpenClaw’s command shim is usually:
%APPDATA%\npm\openclaw.cmd
Try this in PowerShell:
where.exe node
where.exe npm
echo $env:APPDATA
Test-Path "$env:APPDATA\npm"
If where.exe npm finds nothing, Node/npm is missing from PATH. Add this to User Path:
C:\Program Files\nodejs
If $env:APPDATA\npm doesn’t exist, that usually means no global npm command shims are installed yet. You can either create/add it, or rerun the OpenClaw Windows installer:
iwr -useb https://openclaw.ai/install.ps1 | iex
After changing PATH, close PowerShell completely and open a new one, then:
node -v
npm -v
openclaw --version
imma delete and reinstall openclaw nothing too cool setup till now
Fair — if there’s nothing important yet, reinstalling is reasonable. I’d do reinstall over the top first before deleting state:
iwr -useb https://openclaw.ai/install.ps1 | iex
Then close PowerShell, open a new one, test:
openclaw --version
openclaw doctor
If you want a clean wipe too, only do this if you’re okay losing OpenClaw config/Telegram creds/sessions:
schtasks /Delete /F /TN "OpenClaw Gateway"
Remove-Item -Recurse -Force "$env:USERPROFILE\.openclaw"
npm rm -g openclaw
Then reinstall:
iwr -useb https://openclaw.ai/install.ps1 | iex
Docs: https://docs.openclaw.ai/install / https://docs.openclaw.ai/install/uninstall