-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Deprecate python-telegram-bot-raw
#4270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Looks like you edited README.rst or README_RAW.rst. I'm just a friendly reminder to apply relevant changes to both of those files :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
channel post seems good. edit: I edited OP to fix a typo
Some further typos for the channel post :)
light of day
maintaining
understanding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I built the wheels and double checked the installation on linux & windows. Merging. |
Adresses first part of #4129
Manually tested the warnings. Automated testing doesn't seem to be very straight forward at first glance, so I'm willing to skip it …
Draft for a channel post:
Hi all.
We have decided to deprecate the
python-telegram-bot-raw
library and no longer provide updates for it.In Februrary 2021, we introduced the library
python-telegram-bot-raw
that provides thetelegram
module withouttelegram.ext
. Back then, we felt this to be right thing to do since the rather new v13 introduced additional required dependencies for theJobQueue
.Since then v20 has seen the light of day however. With v20,
python-telegram-bot
only has a single required dependency,httpx
for the networking backend. All other dependencies for further functionality oftelegram.ext
are purely optional. Moreover, according to the numbers that we are aware of ([1], [2], [3], [4]), thepython-telegram-bot-raw
library never gained a considerable user base compared topython-telegram-bot
.Since maintaining
python-telegram-bot-raw
still consumes some resources and is currently also hindering the modernization of PTBs packaging setup, we have therefore made this decision. The next release of PTB will add a corresponding warning topython-telegram-bot-raw
. This will be the last update forpython-telegram-bot-raw
.What does this mean to you?
Almost nothing. All you have to do is remove that trailing
-raw
from your requirements file. That's it. No code changes are necessary, sincepython-telegram-bot-raw
is a subset ofpython-telegram-bot
. No additional dependencies will be installed.Thank you for your understanding and your continued usage of the
python-telegram-bot
library.Your PTB Developer Team