#Get Telegram group ID for bot configuration
1 messages · Page 1 of 1 (latest)
Simplest path, since OpenClaw is already consuming the webhook, is to let OpenClaw show you the inbound update.
From WSL2:
openclaw logs --follow
Then send any message in that Telegram group and look for the Telegram payload’s chat.id.
A group/supergroup ID will look something like:
-1001234567890
That negative chat.id is the value you want under channels.telegram.groups, not in groupAllowFrom.
Why this works: getUpdates is empty when a webhook is active, so reading the gateway logs is easier than fighting Telegram’s polling/webhook split.
Docs:
- Telegram channel docs: https://docs.openclaw.ai/channels/telegram
- FAQ: https://docs.openclaw.ai/start/faq
If you want, I can also show the exact JSON5 snippet for adding that group ID to your config.