openclaw/extensions/telegram/src/bot
Cypherm 6b4c24c2e5
feat(telegram): support custom apiRoot for alternative API endpoints (#48842)
* feat(telegram): support custom apiRoot for alternative API endpoints

Add `apiRoot` config option to allow users to specify custom Telegram Bot
API endpoints (e.g., self-hosted Bot API servers). Threads the configured
base URL through all Telegram API call sites: bot creation, send, probe,
audit, media download, and api-fetch. Extends SSRF policy to dynamically
trust custom apiRoot hostname for media downloads.

Closes #28535

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(telegram): thread apiRoot through allowFrom lookups

* fix(telegram): honor lookup transport and local file paths

* refactor(telegram): unify username lookup plumbing

* fix(telegram): restore doctor lookup imports

* fix: document Telegram apiRoot support (#48842) (thanks @Cypherm)

---------

Co-authored-by: Cypherm <28184436+Cypherm@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-03-21 10:10:38 +05:30
..
delivery.replies.ts fix: emit message:sent hook on Telegram streaming preview finalization (#50917) 2026-03-20 22:42:04 +05:30
delivery.resolve-media-retry.test.ts feat(telegram): support custom apiRoot for alternative API endpoints (#48842) 2026-03-21 10:10:38 +05:30
delivery.resolve-media.ts feat(telegram): support custom apiRoot for alternative API endpoints (#48842) 2026-03-21 10:10:38 +05:30
delivery.send.ts refactor: untangle remaining plugin sdk boundaries 2026-03-16 21:16:32 -07:00
delivery.test.ts test(telegram): inject media loader in delivery replies 2026-03-19 06:30:59 -07:00
delivery.ts fix: emit message:sent hook on Telegram streaming preview finalization (#50917) 2026-03-20 22:42:04 +05:30
helpers.test.ts agent: preemptive context overflow detection during tool loops (#29371) 2026-03-16 19:04:00 -07:00
helpers.ts refactor: consolidate plugin sdk surface 2026-03-20 19:24:10 +00:00
reply-threading.ts refactor: untangle remaining plugin sdk boundaries 2026-03-16 21:16:32 -07:00
types.ts