Skip to content

feat: add proxy URL setting for bot connection - #355

Open
sheben404 wants to merge 1 commit into
soberhacker:developfrom
sheben404:feat/proxy-url
Open

feat: add proxy URL setting for bot connection#355
sheben404 wants to merge 1 commit into
soberhacker:developfrom
sheben404:feat/proxy-url

Conversation

@sheben404

Copy link
Copy Markdown

Summary

  • Add a proxy URL setting in Bot Settings, allowing users to configure a proxy for the Telegram bot connection
  • Useful for users in regions where Telegram is blocked (e.g. China, Iran) or in restricted corporate networks

Changes

  • Added proxyUrl field to plugin settings
  • Added proxy URL input in Bot Settings modal
  • Applied proxy configuration to TelegramBot initialization via request.proxy

Test plan

  • Configure a proxy URL in Bot Settings and verify the bot connects through it
  • Leave proxy URL empty and verify the bot connects directly as before

node-telegram-bot-api uses Node.js native HTTP which bypasses
Electron's session proxy. This adds a proxy URL field in Advanced
Settings and passes it to the bot constructor's request options.
@WeslyG

WeslyG commented Jun 26, 2026

Copy link
Copy Markdown

Oh, I'd be happy if it was in the release too! please

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.

2 participants