Skip to content

Commit 0b06296

Browse files
authored
Update Phrasing for /compat TagHint (#127)
* Update compat in taghints.py * Update HTML entities on compat in taghints.py * line length is a thing * Clearer message
1 parent e9609be commit 0b06296

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

components/taghints.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,14 @@
244244
},
245245
"compat": {
246246
"message": (
247-
"{query} You seem to be using a version &gt;=20.0 of <code>python-telegram-bot</code> "
248-
" but your code is written for version &lt;=13.15. Please either upgrade your code to "
249-
" v20 by reading the release notes and the transition guide linked below or install "
250-
"a version of PTB that is compatible with your code base.\n"
251-
"Please note that we only provide support for the latest stable version and that the "
252-
"library has undergone significant changes in v20."
247+
"{query} You seem to be using the new version (&gt;=20.0) of "
248+
"<code>python-telegram-bot</code> but your code is written for an older and "
249+
"deprecated version (&lt;=13.15).\nPlease update your code to the new v20 by reading"
250+
" the release notes and the transition guide linked below.\nYou can also install a "
251+
"version of PTB that is compatible with your code base, but please note that the "
252+
"library has undergone significant changes in v20 and the older version is not "
253+
"supported anymore. It may contain bugs that will not be fixed by the PTB team "
254+
"and it also doesn't support new functions added by newer Bot API releases."
253255
),
254256
"buttons": [
255257
[

0 commit comments

Comments
 (0)