Skip to content

bugs for proxy setting by Application.builder().token().proxy(PROXY_URL) #5244

@solobear

Description

@solobear

Issue I am facing

  1. http proxy, set by Application.builder().token().proxy(PROXY_URL)
  2. get_me info : ok
  3. by get_updates: failed.

after I changes the proxy setting by set env:
os.environ['http_proxy'] = PROXY_URL
os.environ['https_proxy'] = PROXY_URL

it works well as expected.

Traceback to the issue

Related part of your code

Operating System

Win11

Version of Python, python-telegram-bot & dependencies

python-telegram-bot 22.7
Bot API 9.5
Python 3.12.10 (tags/v3.12.10:0cc8128, Apr  8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions