Skip to content

feat: add configurable Telegram API URL for proxy support#1660

Merged
crazy-max merged 2 commits into
crazy-max:masterfrom
GSemekhin:feat/telegram-custom-api-url
Apr 12, 2026
Merged

feat: add configurable Telegram API URL for proxy support#1660
crazy-max merged 2 commits into
crazy-max:masterfrom
GSemekhin:feat/telegram-custom-api-url

Conversation

@GSemekhin
Copy link
Copy Markdown
Contributor

This PR adds the ability to override the default Telegram Bot API URL (https://api.telegram.org). This is primarily useful for users who need to route their Telegram notifications through a custom proxy or want to use a local Telegram Bot API server.

Changes:

  • Added apiURL field to the Telegram config and the corresponding DIUN_NOTIF_TELEGRAM_APIURL environment variable.
  • Updated the gotgbot client initialization to use the custom URL if provided (falls back to the default one otherwise).
  • Updated the documentation.

Closes #1536

@GSemekhin GSemekhin requested a review from crazy-max as a code owner April 5, 2026 17:16
Copy link
Copy Markdown
Owner

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

Pushed extra commit to set defaults in config and added tests to cover the new config path.

@crazy-max crazy-max merged commit 94911f3 into crazy-max:master Apr 12, 2026
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define telegram APIURL as environment variable

2 participants