feat: add SOCKS5 proxy support for Telegram API traffic

Route bot traffic through SOCKS5 proxy when PROXY_URL env var is set.
Validates scheme to reject HTTP proxies (would expose bot token).
Credentials are masked in logs.
This commit is contained in:
Fringg
2026-03-21 02:32:35 +03:00
parent 2a72deadd6
commit 82b6a8bf70
6 changed files with 70 additions and 2 deletions
+1
View File
@@ -24,6 +24,7 @@ dependencies = [
'pyzipper>=0.3.6',
'structlog>=25.1.0,<26',
'rich>=14.0',
'aiohttp-socks>=0.10.1',
]
[dependency-groups]