Skip to content

fix(telegram): require numeric allowFrom ids in setup - #69191

Merged
obviyus merged 3 commits into
mainfrom
fix/telegram-allowfrom-numeric-ids
Apr 20, 2026
Merged

obviyus merged 3 commits into
mainfrom
fix/telegram-allowfrom-numeric-ids

Conversation

@obviyus

@obviyus obviyus commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator

Telegram setup no longer offers @username resolution for allowFrom, which relied on an unsupported Bot API lookup path for DM users. Setup now requires numeric sender IDs and the Telegram docs/tests are aligned with that behavior.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: telegram Channel integration: telegram size: S maintainer Maintainer-authored PR labels Apr 20, 2026
@obviyus obviyus self-assigned this Apr 20, 2026
@greptile-apps

greptile-apps Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR removes the @username → numeric ID resolution path from Telegram setup, which relied on an unsupported Bot API lookup for DM users. Setup now only accepts and validates numeric sender IDs directly, and the resolveTelegramAllowFromEntries function (along with its lookupTelegramChatId dependency) is fully removed. Docs and tests are consistently updated to match.

Confidence Score: 5/5

Safe to merge — the simplification is correct and consistent across code, tests, and docs.

The removal of async username resolution is clean: the dead code path, its dependencies, and related test stubs are all excised together. The new resolveEntries is a simple synchronous map that correctly returns { resolved: false, id: null } for non-numeric input. No regressions observed in the changed logic.

No files require special attention.

Reviews (1): Last reviewed commit: "docs(telegram): clarify allowFrom setup ..." | Re-trigger Greptile

@obviyus
obviyus merged commit 0ce5e35 into main Apr 20, 2026
30 checks passed
@obviyus
obviyus deleted the fix/telegram-allowfrom-numeric-ids branch April 20, 2026 04:33
@obviyus

obviyus commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator Author

Landed on main.

lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
ogt-redknie pushed a commit to ogt-redknie/OPENX that referenced this pull request May 2, 2026
globalcaos pushed a commit to globalcaos/tinkerclaw that referenced this pull request May 13, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
vixco pushed a commit to vixco/openclaw that referenced this pull request Aug 16, 2026
Heetisk pushed a commit to Heetisk/openclaw that referenced this pull request Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram docs Improvements or additions to documentation maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant