# Telegram Bot API 기본 URL 설정 허용

**URL:** <https://meta.discourse.org/t/allow-configuring-the-telegram-bot-api-base-url/408154>\
**Category:** Feature\
**Tags:** chat-integration\
**Created:** [7월 21, 2026, 2:01오후 UTC](https://meta.discourse.org/t/allow-configuring-the-telegram-bot-api-base-url/408154 "2026-07-21T14:01:32Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Oniel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oniel/32/365830_2.png) [@Oniel](https://meta.discourse.org/u/Oniel)\
**Post date:** [7월 21, 2026, 2:01오후 UTC](https://meta.discourse.org/t/allow-configuring-the-telegram-bot-api-base-url/408154/1 "2026-07-21T14:01:33Z")

</div>

Discourse Chat Integration 플러그인의 Telegram 제공자는 현재 모든 요청을 `https://api.telegram.org`으로 직접 전송합니다.

일부 국가 및 호스팅 환경에서는 네트워크 수준에서 Telegram이 차단되거나 사용할 수 없습니다. 이로 인해 웹훅 초기 설정을 포함하여 통합 기능이 작동하지 않습니다.

관리자가 Telegram Bot API 기본 URL을 신뢰할 수 있는 HTTPS 프록시 주소로 대체할 수 있는 사이트 설정을 추가하는 것을 제안합니다. 예를 들어, 기존 Telegram 통합은 변경하지 않은 채 Cloudflare Worker를 통해 요청을 라우팅할 수 있습니다.

기본값은 `https://api.telegram.org`으로 유지되므로 기존 설치에는 영향을 주지 않습니다.

제안 PR:

> <https://github.com/discourse/discourse/pull/41818>
>
> \## What changed
> 
> Adds \`chat\_integration\_telegram\_api\_base\_url\` setting for the… Telegram chat integration (discourse-chat-integration plugin)
> 
> The setting defaults to \`https://api.telegram.org\`, so existing installations keep their current behavior.
> 
> \## Why
> 
> Some Discourse installations cannot reach \`api.telegram.org\` directly because Telegram is blocked or restricted by local network providers.
> 
> This setting allows administrators to route Telegram Bot API requests through a trusted reverse proxy, such as a Cloudflare Worker, without patching the plugin.
> 
> \## Cloudflare Worker example
> 
> The following Worker can be deployed as a small Telegram Bot API proxy:
> 
> \`\`\`js
> export default {
> async fetch(request) {
> const url = new URL(request.url);
> 
> if (
> !url.pathname.startsWith("/bot") &&
> !url.pathname.startsWith("/file/bot")
> ) {
> return new Response("Not found", { status: 404 });
> }
> 
> url.hostname = "api.telegram.org";
> url.protocol = "https:";
> url.port = "";
> 
> return fetch(new Request(url, request));
> },
> };
> \`\`\`
> 
> The proxy must be trusted because Telegram bot tokens are included in Bot API request paths.

---

_[View the full topic](https://meta.discourse.org/t/allow-configuring-the-telegram-bot-api-base-url/408154)._
