#13070: feat: Add support for custom Telegram Bot API server URL via apiRoot option
docs
channel: telegram
stale
Cluster:
Messaging Platform Improvements
add apiRoot and docs
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adds an `apiRoot` option to Telegram account configuration and wires it into the grammY `Bot` client options, allowing the Telegram channel to target a custom Telegram Bot API base URL (e.g., local Bot API server or proxy). It also updates the English and zh-CN Telegram docs to document the new `channels.telegram.apiRoot` setting and its default (`https://api.telegram.org`).
<h3>Confidence Score: 5/5</h3>
- This PR appears safe to merge with minimal risk.
- Changes are small, isolated to Telegram config/types, bot client construction, and docs. The new option is optional and only affects behavior when explicitly set, so default behavior remains unchanged.
- No files require special attention
<!-- greptile_other_comments_section -->
<sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#9577: feat: Add apiRoot option for custom Telegram Bot API server endpoint
by vfiee · 2026-02-05
90.3%
#19616: feat(telegram): support custom apiRoot for Telegram Bot API
by CarloCPP · 2026-02-18
88.3%
#7058: feat(telegram): add channel_post handler for broadcast channels
by waifu7498173 · 2026-02-02
76.9%
#18170: feat(telegram): support local Bot API server via `apiRoot` config
by iemesowum · 2026-02-16
76.2%
#11920: Telegram: create forum topics via message tool (thread-create)
by larsderidder · 2026-02-08
74.6%
#8310: feat(telegram): Add allowBots support for groups (parity with Disco...
by vishaltandale00 · 2026-02-03
74.0%
#6457: fix(telegram): register commands for group scope + preserve topic t...
by dae-sun · 2026-02-01
74.0%
#12950: feat: add Telegram pin/unpin message support
by alex-muradov · 2026-02-09
73.1%
#13652: fix(discord): ensure default bot loads when multiple accounts are con…
by metav · 2026-02-10
73.0%
#21029: Feature/telegram bot avatar clean
by aleonnet · 2026-02-19
72.9%