-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Description
Is your feature request related to a problem?
Yes. In some regions (like Iran), the default Telegram API servers are blocked. Users need to use custom API servers (like local bot API servers or reverse proxies) to connect to Telegram.
Describe the solution you'd like
Add a configuration option to specify a custom base URL for the Telegram API, instead of hardcoding api.telegram.org.
Example config:
channels:
telegram:
token: YOUR_BOT_TOKEN
api_base_url: https://custom-api-server.example.comDescribe alternatives you've considered
- Using system-wide VPN (not always feasible on embedded devices)
- Patching the code manually (not maintainable)
Additional context
This is a common requirement for users in regions with Telegram restrictions. The official python-telegram-bot library already supports this via base_url parameter.
Thanks for considering this!
Reactions are currently unavailable