Consider replacing httpx with httpx2

Author: BjoernPetersenCreated Jun 5, 2026Updated Sep 3, 2026
Labels🛠 refactor🛠 breaking

What kind of feature are you missing? Where do you notice a shortcoming of PTB?

This package builds on top of httpx, and httpx has been unmaintained for a while now (no release since 2024).

Describe the solution you'd like

There is a fork of httpx under the pydantic umbrella that should be a drop-in replacement: https://github.com/pydantic/httpx2

Of course the package name is different, so a one-time search and replace migration would be necessary.

Describe alternatives you've considered

No response

Additional context

No response

Source: python-telegram-bot/python-telegram-bot