#Get Telegram group ID for bot configuration

1 messages · Page 1 of 1 (latest)

worthy crest
#

I have two bots in a Telegram group. I need the group ID to configure OpenClaw. Both bots have group privacy disabled via BotFather. What is the simplest way to get the group ID from inside WSL2? The getUpdates curl method returns empty results because OpenClaw has a webhook consuming Lex's bot updates.

main pythonBOT
warm condorBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

main pythonBOT
heady viperBOT
#

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.