Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
S
stax_backend_api
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Aryan Noshirvani
  • stax_backend_api
  • Repository

Switch branch/tag
  • stax_backend_api
  • src
  • telegram_worker
  • telegram_auth.py
Find file
BlameHistoryPermalink
  • Aryan Noshirvnai's avatar
    Route Pyrogram's MTProto connection through the SOCKS5 proxy too · 446f0f1f
    Aryan Noshirvnai authored Nov 06, 2026
    HTTP_PROXY/HTTPS_PROXY only affect HTTP client libraries - Pyrogram talks
    to Telegram's datacenters over raw MTProto/TCP, which never respected
    those env vars. On a network that can't reach Telegram directly, every
    Client() call hung in an infinite "Connection timed out" retry loop -
    exactly what made Telegram linking "get stuck" on prod. Added a
    TELEGRAM_PROXY config (opt-in via TELEGRAM_PROXY_HOST, unset by default so
    dev's direct access needs no change) and passed it into all four
    pyrogram.Client() construction sites.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    446f0f1f
telegram_auth.py 2.52 KB
EditWeb IDE

Replace telegram_auth.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.