Skip to content

Fix: Telegram channel crash when proxy is configured#1535

Merged
Re-bin merged 1 commit intoHKUDS:mainfrom
dsxyy:fix-telegram-proxy-crash
Mar 7, 2026
Merged

Fix: Telegram channel crash when proxy is configured#1535
Re-bin merged 1 commit intoHKUDS:mainfrom
dsxyy:fix-telegram-proxy-crash

Conversation

@dsxyy
Copy link
Copy Markdown
Contributor

@dsxyy dsxyy commented Mar 4, 2026

Currently, the TelegramChannel implementation fails with ValueError: The parameter 'proxy' may only be set, if no request instance was set. when a proxy is provided in the configuration.

This is because the code attempts to set the proxy on the ApplicationBuilder while also providing a custom HTTPXRequest instance, which is not allowed in python-telegram-bot.

This PR moves the proxy configuration directly into the HTTPXRequest initialization, resolving the startup crash.

@Re-bin Re-bin merged commit 369dbec into HKUDS:main Mar 7, 2026
Mazahir26 added a commit to Mazahir26/nanobot that referenced this pull request Mar 8, 2026
Upstream changes integrated:
- PR HKUDS#1635: Agent config/workspace CLI support
- PR HKUDS#1677: Fix auth allowlist bypass via sender_id token splitting
- PR HKUDS#1467: DingTalk group chat support
- PR HKUDS#436: Preserve Telegram document extension
- PR HKUDS#1482: Telegram topic support
- PR HKUDS#1535: Fix Telegram proxy crash
- PR HKUDS#332: Feishu event handlers
- Azure OpenAI provider support
- Multi-instance path cleanup and workspace override preservation
- Slack empty text response handling
- QQ group @message support

Conflicts resolved:
- .gitignore: Preserved user's tests/ and QWEN.md entries
- nanobot/agent/tools/mcp.py: Merged upstream's SSE transport support with user's dict compatibility for backward compatibility

Tests: 169 passed

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
robottwo pushed a commit to robottwo/nanobot that referenced this pull request Mar 13, 2026
sorker pushed a commit to sorker/nanobot that referenced this pull request Mar 24, 2026
Wattysaid pushed a commit to kieran-assistant/nanobot that referenced this pull request Apr 3, 2026
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