feat: add proxy URL setting for bot connection - #353
Closed
sheben404 wants to merge 7 commits into
Closed
Conversation
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.
Open
|
How to install? |
generateMarkdownLink may omit the ! prefix for media files, causing images/videos/audio to render as plain links instead of embeds. This checks the file extension and prepends ! when needed.
- Update README, manifest, package.json with fork author info - Simplify CI release workflow to trigger on tag push - Update CONTRIBUTING with new release process - Remove donation links and FUNDING.yml - Update doc links to point to fork repository - Credit original author in settings page and README
Author
Hi! The original repo seems to be no longer actively maintained, so I've been maintaining this fork with some additional fixes. You can find the installation instructions here: |
|
Doesn't work.... Would you be so kind to add Issues to your fork? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
node-telegram-bot-api's request options when creating the bot instanceWhy
node-telegram-bot-apiuses Node.js nativehttp/httpsmodules, which bypass Electron's session proxy set by plugins like Global Proxy. This means users behind a proxy cannot connect the bot without a built-in proxy setting.Changes
src/settings/Settings.ts— addedproxyUrlfield to settings interface and defaultssrc/settings/modals/AdvancedSettings.ts— added proxy URL text input in the Advanced Settings modalsrc/telegram/bot/bot.ts— passes proxy toTelegramBotconstructor viarequestoptionsTest plan