diff --git a/docs/channels/telegram.md b/docs/channels/telegram.md index fffb2bc3397c..d6d31cd14367 100644 --- a/docs/channels/telegram.md +++ b/docs/channels/telegram.md @@ -67,7 +67,7 @@ openclaw pairing approve telegram - your Telegram user ID, used in `allowFrom` / `groupAllowFrom` - the Telegram group chat ID, used as the key under `channels.telegram.groups` - In the group, run `/whoami@` if native commands are enabled. You can also read the same values from `openclaw logs --follow` after sending a group message to the bot. + For first-time setup, get the group chat ID from `openclaw logs --follow`, a forwarded-ID bot, or Bot API `getUpdates`. After the group is allowed, `/whoami@` can confirm the user and group IDs. Negative Telegram supergroup IDs that start with `-100` are group chat IDs. Put them under `channels.telegram.groups`, not under `groupAllowFrom`. @@ -185,8 +185,8 @@ curl "https://api.telegram.org/bot/getUpdates" telegram: { enabled: true, dmPolicy: "pairing", + allowFrom: [""], groupPolicy: "allowlist", - groupAllowFrom: [""], groups: { "": { requireMention: true, @@ -277,10 +277,10 @@ curl "https://api.telegram.org/bot/getUpdates" Getting the group chat ID: - - run `/whoami@` in the group if native commands are enabled - forward a group message to `@userinfobot` / `@getidsbot` - or read `chat.id` from `openclaw logs --follow` - or inspect Bot API `getUpdates` + - after the group is allowed, run `/whoami@` if native commands are enabled