8000 Bump Version to v21.7 (#4557) · Relaxx422/python-telegram-bot@1511237 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1511237

Browse files
authored
Bump Version to v21.7 (python-telegram-bot#4557)
1 parent 0eb11ff commit 1511237

File tree

10 files changed

+81
-31
lines changed

10 files changed

+81
-31
lines changed

CHANGES.rst

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,56 @@
44
Changelog
55
=========
66

7+
Version 21.7
8+
============
9+
*Released 2024-11-04*
10+
11+
This is the technical changelog for version 21.7. More elaborate release notes can be found in the news channel `@pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>`_.
12+
13+
Major Changes
14+
-------------
15+
16+
- Full Support for Bot API 7.11 (:pr:`4546` closes :issue:`4543`)
17+
- Add ``Message.reply_paid_media`` (:pr:`4551`)
18+
- Drop Support for Python 3.8 (:pr:`4398` by `elpekenin <https://github.com/elpekenin>`_)
19+
20+
Minor Changes
21+
-------------
22+
23+
- Allow ``Sequence`` in ``Application.add_handlers`` (:pr:`4531` by `roast-lord <https://github.com/roast-lord>`_ closes :issue:`4530`)
24+
- Improve Exception Handling in ``File.download_*`` (:pr:`4542`)
25+
- Use Stable Python 3.13 Release in Test Suite (:pr:`4535`)
26+
27+
Documentation Improvements
28+
--------------------------
29+
30+
- Documentation Improvements (:pr:`4536` by `Ecode2 <https://github.com/Ecode2>`_, :pr:`4556`)
31+
- Fix Linkcheck Workflow (:pr:`4545`)
32+
- Use ``sphinx-build-compatibility`` to Keep Sphinx Compatibility (:pr:`4492`)
33+
34+
Internal Changes
35+
----------------
36+
37+
- Improve Test Instability Caused by ``Message`` Fixtures (:pr:`4507`)
38+
- Stabilize Some Flaky Tests (:pr:`4500`)
39+
- Reduce Creation of HTTP Clients in Tests (:pr:`4493`)
40+
- Update ``pytest-xdist`` Usage (:pr:`4491`)
41+
- Fix Failing Tests by Making Them Independent (:pr:`4494`)
42+
- Introduce Codecov's Test Analysis (:pr:`4487`)
43+
- Maintenance Work on ``Bot`` Tests (:pr:`4489`)
44+
- Introduce ``conftest.py`` for File Related Tests (:pr:`4488`)
45+
- Update Issue Templates to Use Issue Types (:pr:`4553`)
46+
- Update Automation to Label Changes (:pr:`4552`)
47+
48+
Dependency Updates
49+
------------------
50+
51+
- Bump ``srvaroa/labeler`` from 1.11.0 to 1.11.1 (:pr:`4549`)
52+
- Bump ``sphinx`` from 8.0.2 to 8.1.3 (:pr:`4532`)
53+
- Bump ``sphinxcontrib-mermaid`` from 0.9.2 to 1.0.0 (:pr:`4529`)
54+
- Bump ``srvaroa/labeler`` from 1.10.1 to 1.11.0 (:pr:`4509< 6D47 /span>`)
55+
- Bump ``Bibo-Joshi/pyright-type-completeness`` from 1.0.0 to 1.0.1 (:pr:`4510`)
56+
757
Version 21.6
858
============
959

telegram/_bot.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ async def send_message(
969969
.. versionadded:: 21.3
970970
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
971971
972-
.. versionadded:: NEXT.VERSION
972+
.. versionadded:: 21.7
973973
974974
Keyword Args:
975975
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -1348,7 +1348,7 @@ async def send_photo(
13481348
.. versionadded:: 21.3
13491349
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
13501350
1351-
.. versionadded:: NEXT.VERSION
1351+
.. versionadded:: 21.7
13521352
show_caption_above_media (:obj:`bool`, optional): Pass |show_cap_above_med|
13531353
13541354
.. versionadded:: 21.3
@@ -1511,7 +1511,7 @@ async def send_audio(
15111511
.. versionadded:: 21.3
15121512
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
15131513
1514-
.. versionadded:: NEXT.VERSION
1514+
.. versionadded:: 21.7
15151515
15161516
Keyword Args:
15171517
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -1670,7 +1670,7 @@ async def send_document(
16701670
.. versionadded:: 21.3
16711671
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
16721672
1673-
.. versionadded:: NEXT.VERSION
1673+
.. versionadded:: 21.7
16741674
16751675
Keyword Args:
16761676
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -1801,7 +1801,7 @@ async def send_sticker(
18011801
.. versionadded:: 21.3
18021802
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
18031803
1804-
.. versionadded:: NEXT.VERSION
1804+
.. versionadded:: 21.7
18051805
18061806
Keyword Args:
18071807
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -1962,7 +1962,7 @@ async def send_video(
19621962
.. versionadded:: 21.3
19631963
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
19641964
1965-
.. versionadded:: NEXT.VERSION
1965+
.. versionadded:: 21.7
19661966
show_caption_above_media (:obj:`bool`, optional): Pass |show_cap_above_med|
19671967
19681968
.. versionadded:: 21.3
@@ -2120,7 +2120,7 @@ async def send_video_note(
21202120
.. versionadded:: 21.3
21212121
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
21222122
2123-
.. versionadded:: NEXT.VERSION
2123+
.. versionadded:: 21.7
21242124
21252125
Keyword Args:
21262126
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -2282,7 +2282,7 @@ async def send_animation(
22822282
.. versionadded:: 21.3
22832283
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
22842284
2285-
.. versionadded:: NEXT.VERSION
2285+
.. versionadded:: 21.7
22862286
show_caption_above_media (:obj:`bool`, optional): Pass |show_cap_above_med|
22872287
22882288
.. versionadded:: 21.3
@@ -2442,7 +2442,7 @@ async def send_voice(
24422442
.. versionadded:: 21.3
24432443
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
24442444
2445-
.. versionadded:: NEXT.VERSION
2445+
.. versionadded:: 21.7
24462446
24472447
Keyword Args:
24482448
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -2573,7 +2573,7 @@ async def send_media_group(
25732573
.. versionadded:: 21.3
25742574
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
25752575
2576-
.. versionadded:: NEXT.VERSION
2576+
.. versionadded:: 21.7
25772577
25782578
Keyword Args:
25792579
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -2761,7 +2761,7 @@ async def send_location(
27612761
.. versionadded:: 21.3
27622762
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
27632763
2764-
.. versionadded:: NEXT.VERSION
2764+
.. versionadded:: 21.7
27652765
27662766
Keyword Args:
27672767
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -3073,7 +3073,7 @@ async def send_venue(
30733073
.. versionadded:: 21.3
30743074
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
30753075
3076-
.. versionadded:: NEXT.VERSION
3076+
.. versionadded:: 21.7
30773077
30783078
Keyword Args:
30793079
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -3220,7 +3220,7 @@ async def send_contact(
32203220
.. versionadded:: 21.3
32213221
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
32223222
3223-
.. versionadded:: NEXT.VERSION
3223+
.. versionadded:: 21.7
32243224
32253225
Keyword Args:
32263226
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -3345,7 +3345,7 @@ async def send_game(
33453345
.. versionadded:: 21.3
33463346
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
33473347
3348-
.. versionadded:: NEXT.VERSION
3348+
.. versionadded:: 21.7
33493349
33503350
Keyword Args:
33513351
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -5154,7 +5154,7 @@ async def send_invoice(
51545154
.. versionadded:: 21.3
51555155
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
51565156
5157-
.. versionadded:: NEXT.VERSION
5157+
.. versionadded:: 21.7
51585158
51595159
Keyword Args:
51605160
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -7165,7 +7165,7 @@ async def send_poll(
71657165
.. versionadded:: 21.3
71667166
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
71677167
7168-
.. versionadded:: NEXT.VERSION
7168+
.. versionadded:: 21.7
71697169
71707170
Keyword Args:
71717171
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -7348,7 +7348,7 @@ async def send_dice(
73487348
.. versionadded:: 21.3
73497349
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
73507350
7351-
.. versionadded:: NEXT.VERSION
7351+
.. versionadded:: 21.7
73527352
73537353
Keyword Args:
73547354
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -7778,7 +7778,7 @@ async def copy_message(
77787778
.. versionadded:: 21.3
77797779
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
77807780
7781-
.. versionadded:: NEXT.VERSION
7781+
.. versionadded:: 21.7
77827782
77837783
Keyword Args:
77847784
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
@@ -9315,7 +9315,7 @@ async def send_paid_media(
93159315
.. versionadded:: 21.5
93169316
allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|
93179317
9318-
.. versionadded:: NEXT.VERSION
9318+
.. versionadded:: 21.7
93199319
93209320
Keyword Args:
93219321
allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|

telegram/_copytextbutton.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CopyTextButton(TelegramObject):
3030
Objects of this class are comparable in terms of equality. Two objects of this class are
3131
considered equal, if their :attr:`text` is equal.
3232
33-
.. versionadded:: NEXT.VERSION
33+
.. versionadded:: 21.7
3434
3535
Args:
3636
text (:obj:`str`): The text to be copied to the clipboard;

telegram/_files/file.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ async def download_to_drive(
151151
* This method was previously called ``download``. It was split into
152152
:meth:`download_to_drive` and :meth:`download_to_memory`.
153153
154-
.. versionchanged:: NEXT.VERSION
154+
.. versionchanged:: 21.7
155155
Raises :exc:`RuntimeError` if :attr:`file_path` is not set. Note that files without
156156
a :attr:`file_path` could never be downloaded, as this attribute is mandatory for that
157157
operation.
@@ -245,7 +245,7 @@ async def download_to_memory(
245245
246246
.. versionadded:: 20.0
247247
248-
.. versionchanged:: NEXT.VERSION
248+
.. versionchanged:: 21.7
249249
Raises :exc:`RuntimeError` if :attr:`file_path` is not set. Note that files without
250250
a :attr:`file_path` could never be downloaded, as this attribute is mandatory for that
251251
operation.
@@ -302,7 +302,7 @@ async def download_as_bytearray(
302302
) -> bytearray:
303303
"""Download this file and return it as a bytearray.
304304
305-
.. versionchanged:: NEXT.VERSION
305+
.. versionchanged:: 21.7
306306
Raises :exc:`RuntimeError` if :attr:`file_path` is not set. Note that files without
307307
a :attr:`file_path` could never be downloaded, as this attribute is mandatory for that
308308
operation.

telegram/_inline/inlinekeyboardbutton.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class InlineKeyboardButton(TelegramObject):
127127
copy_text (:class:`telegram.CopyTextButton`, optional): Description of the button that
128128
copies the specified text to the clipboard.
129129
130-
.. versionadded:: NEXT.VERSION
130+
.. versionadded:: 21.7
131131
callback_game (:class:`telegram.CallbackGame`, optional): Description of the game that will
132132
be launched when the user presses the button
133133
@@ -200,7 +200,7 @@ class InlineKeyboardButton(TelegramObject):
200200
copy_text (:class:`telegram.CopyTextButton`): Optional. Description of the button that
201201
copies the specified text to the clipboard.
202202
203-
.. versionadded:: NEXT.VERSION
203+
.. versionadded:: 21.7
204204
callback_game (:class:`telegram.CallbackGame`): Optional. Description of the game that will
205205
be launched when the user presses the button.
206206

telegram/_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3704,7 +3704,7 @@ async def reply_paid_media(
37043704
37053705
For the documentation of the arguments, please see :meth:`telegram.Bot.send_paid_media`.
37063706
3707-
.. versionadded:: NEXT.VERSION
3707+
.. versionadded:: 21.7
37083708
37093709
Keyword Args:
37103710
do_quote (:obj:`bool` | :obj:`dict`, optional): |do_quote|

telegram/_payment/stars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ class TransactionPartnerTelegramApi(TransactionPartner):
431431
Objects of this class are comparable in terms of equality. Two objects of this class are
432432
considered equal, if their :attr:`request_count` is equal.
433433
434-
.. versionadded:: NEXT.VERSION
434+
.. versionadded:: 21.7
435435
436436
Args:
437437
request_count (:obj:`int`): The number of successful requests that exceeded regular limits

telegram/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ def __str__(self) -> str:
5151

5252

5353
__version_info__: Final[Version] = Version(
54-
major=21, minor=6, micro=0, releaselevel="final", serial=0
54+
major=21, minor=7, micro=0, releaselevel="final", serial=0
5555
)
5656
__version__: Final[str] = str(__version_info__)

telegram/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ class FloodLimit(IntEnum):
11601160
:paramref:`~telegram.Bot.send_message.allow_paid_broadcast` of
11611161
:meth:`~telegram.Bot.send_message`.
11621162
1163-
.. versionadded:: NEXT.VERSION
1163+
.. versionadded:: 21.7
11641164
"""
11651165

11661166

@@ -2616,7 +2616,7 @@ class TransactionPartnerType(StringEnum):
26162616
""":obj:`str`: Transaction with with payment for
26172617
`paid broadcasting <https://core.telegram.org/bots/api#paid-broadcasts>`_.
26182618
2619-
..versionadded:: NEXT.VERSION
2619+
..versionadded:: 21.7
26202620
"""
26212621
USER = "user"
26222622
""":obj:`str`: Transaction with a user."""

telegram/ext/_application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ def add_handlers(
14201420
Specify a sequence of handlers *or* a dictionary where the keys are groups and
14211421
values are handlers.
14221422
1423-
.. versionchanged:: NEXT.VERSION
1423+
.. versionchanged:: 21.7
14241424
Accepts any :class:`collections.abc.Sequence` as input instead of just a list
14251425
or tuple.
14261426

0 commit comments

Comments
 (0)
0