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

Skip to content

Commit e4b0f8c

Browse files
authored
Bump Version to v21.10 (python-telegram-bot#4639)
1 parent f2dc017 commit e4b0f8c

File tree

11 files changed

+67
-26
lines changed

11 files changed

+67
-26
lines changed

CHANGES.rst

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

7+
Version 21.10
8+
=============
9+
10+
*Released 2025-01-03*
11+
12+
This is the technical changelog for version 21.10. More elaborate release notes can be found in the news channel `@pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>`_.
13+
14+
Major Changes
15+
-------------
16+
17+
- Full Support for Bot API 8.2 (:pr:`4633`)
18+
- Bump ``apscheduler`` & Deprecate ``pytz`` Support (:pr:`4582`)
19+
20+
New Features
21+
------------
22+
- Add Parameter ``pattern`` to ``JobQueue.jobs()`` (:pr:`4613` closes :issue:`4544`)
23+
- Allow Input of Type ``Sticker`` for Several Methods (:pr:`4616` closes :issue:`4580`)
24+
25+
Bug Fixes
26+
---------
27+
- Ensure Forward Compatibility of ``Gift`` and ``Gifts`` (:pr:`4634` closes :issue:`4637`)
28+
29+
30+
Documentation Improvements & Internal Changes
31+
---------------------------------------------
32+
33+
- Use Custom Labels for ``dependabot`` PRs (:pr:`4621`)
34+
- Remove Redundant ``pylint`` Suppressions (:pr:`4628`)
35+
- Update Copyright to 2025 (:pr:`4631`)
36+
- Refactor Module Structure and Tests for Star Payments Classes (:pr:`4615` closes :issue:`4593`)
37+
- Unify ``datetime`` Imports (:pr:`4605` by `cuevasrja <https://github.com/cuevasrja>`_ closes :issue:`4577`)
38+
- Add Static Security Analysis of GitHub Actions Workflows (:pr:`4606`)
39+
40+
Dependency Updates
41+
------------------
42+
< ED4F /div>
43+
- Bump ``astral-sh/setup-uv`` from 4.2.0 to 5.1.0 (:pr:`4625`)
44+
- Bump ``codecov/codecov-action`` from 5.1.1 to 5.1.2 (:pr:`4622`)
45+
- Bump ``actions/upload-artifact`` from 4.4.3 to 4.5.0 (:pr:`4623`)
46+
- Bump ``github/codeql-action`` from 3.27.9 to 3.28.0 (:pr:`4624`)
47+
748
Version 21.9
849
============
950

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ PTB can be installed with optional dependencies:
158158
* ``pip install "python-telegram-bot[rate-limiter]"`` installs `aiolimiter~=1.1,<1.3 <https://aiolimiter.readthedocs.io/en/stable/>`_. Use this, if you want to use ``telegram.ext.AIORateLimiter``.
159159
* ``pip install "python-telegram-bot[webhooks]"`` installs the `tornado~=6.4 <https://www.tornadoweb.org/en/stable/>`_ library. Use this, if you want to use ``telegram.ext.Updater.start_webhook``/``telegram.ext.Application.run_webhook``.
160160
* ``pip install "python-telegram-bot[callback-data]"`` installs the `cachetools>=5.3.3,<5.6.0 <https://cachetools.readthedocs.io/en/latest/>`_ library. Use this, if you want to use `arbitrary callback_data <https://github.com/python-telegram-bot/python-telegram-bot/wiki/Arbitrary-callback_data>`_.
161-
* ``pip install "python-telegram-bot[job-queue]"`` installs the `APScheduler~=3.10.4 <https://apscheduler.readthedocs.io/en/3.x/>`_ library. Use this, if you want to use the ``telegram.ext.JobQueue``.
161+
* ``pip install "python-telegram-bot[job-queue]"`` installs the `APScheduler>=3.10.4,<3.12.0 <https://apscheduler.readthedocs.io/en/3.x/>`_ library. Use this, if you want to use the ``telegram.ext.JobQueue``.
162162

163163
To install multiple optional dependencies, separate them by commas, e.g. ``pip install "python-telegram-bot[socks,webhooks]"``.
164164

telegram/_bot.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6637,7 +6637,7 @@ async def set_sticker_position_in_set(
66376637
sticker (:obj:`str` | :class:`~telegram.Sticker`): File identifier of the sticker or
66386638
the sticker object.
66396639
6640-
.. versionchanged:: NEXT.VERSION
6640+
.. versionchanged:: 21.10
66416641
Accepts also :class:`telegram.Sticker` instances.
66426642
position (:obj:`int`): New sticker position in the set, zero-based.
66436643
@@ -6770,7 +6770,7 @@ async def delete_sticker_from_set(
67706770
sticker (:obj:`str` | :class:`telegram.Sticker`): File identifier of the sticker or
67716771
the sticker object.
67726772
6773-
.. versionchanged:: NEXT.VERSION
6773+
.. versionchanged:: 21.10
67746774
Accepts also :class:`telegram.Sticker` instances.
67756775
67766776
Returns:
@@ -6967,7 +6967,7 @@ async def set_sticker_emoji_list(
69676967
sticker (:obj:`str` | :class:`~telegram.Sticker`): File identifier of the sticker or
69686968
the sticker object.
69696969
6970-
.. versionchanged:: NEXT.VERSION
6970+
.. versionchanged:: 21.10
69716971
Accepts also :class:`telegram.Sticker` instances.
69726972
emoji_list (Sequence[:obj:`str`]): A sequence of
69736973
:tg-const:`telegram.constants.StickerLimit.MIN_STICKER_EMOJI`-
@@ -7015,7 +7015,7 @@ async def set_sticker_keywords(
70157015
sticker (:obj:`str` | :class:`~telegram.Sticker`): File identifier of the sticker or
70167016
the sticker object.
70177017
7018-
.. versionchanged:: NEXT.VERSION
7018+
.. versionchanged:: 21.10
70197019
Accepts also :class:`telegram.Sticker` instances.
70207020
keywords (Sequence[:obj:`str`]): A sequence of
70217021
0-:tg-const:`telegram.constants.StickerLimit.MAX_SEARCH_KEYWORDS` search keywords
@@ -7063,7 +7063,7 @@ async def set_sticker_mask_position(
70637063
sticker (:obj:`str` | :class:`~telegram.Sticker`): File identifier of the sticker or
70647064
the sticker object.
70657065
7066-
.. versionchanged:: NEXT.VERSION
7066+
.. versionchanged:: 21.10
70677067
Accepts also :class:`telegram.Sticker` instances.
70687068
mask_position (:class:`telegram.MaskPosition`, optional): A object with the position
70697069
where the mask should be placed on faces. Omit the parameter to remove the mask
@@ -9301,7 +9301,7 @@ async def replace_sticker_in_set(
93019301
old_sticker (:obj:`str` | :class:`~telegram.Sticker`): File identifier of the replaced
93029302
sticker or the sticker object itself.
93039303
9304-
.. versionchanged:: NEXT.VERSION
9304+
.. versionchanged:: 21.10
93059305
Accepts also :class:`telegram.Sticker` instances.
93069306
sticker (:class:`telegram.InputSticker`): An object with information about the added
93079307
sticker. If exactly the same sticker had already been added to the set, then the
@@ -9756,7 +9756,7 @@ async def send_gift(
97569756
pay_for_upgrade (:obj:`bool`, optional): Pass :obj:`True` to pay for the gift upgrade
97579757
from the bot's balance, thereby making the upgrade free for the receiver.
97589758
9759-
.. versionadded:: NEXT.VERSION
9759+
.. versionadded:: 21.10
97609760
97619761
Returns:
97629762
:obj:`bool`: On success, :obj:`True` is returned.
@@ -9795,7 +9795,7 @@ async def verify_chat(
97959795
) -> bool:
97969796
"""Verifies a chat on behalf of the organization which is represented by the bot.
97979797
9798-
.. versionadded:: NEXT.VERSION
9798+
.. versionadded:: 21.10
97999799
98009800
Args:
98019801
chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
@@ -9837,7 +9837,7 @@ async def verify_user(
98379837
) -> bool:
98389838
"""Verifies a user on behalf of the organization which is represented by the bot.
98399839
9840-
.. versionadded:: NEXT.VERSION
9840+
.. versionadded:: 21.10
98419841
98429842
Args:
98439843
user_id (:obj:`int`): Unique identifier of the target user.
@@ -9881,7 +9881,7 @@ async def remove_chat_verification(
98819881
98829882
98839883
9884-
.. versionadded:: NEXT.VERSION
9884+
.. versionadded:: 21.10
98859885
98869886
Args:
98879887
chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
@@ -9920,7 +9920,7 @@ async def remove_user_verification(
99209920
99219921
99229922
9923-
.. versionadded:: NEXT.VERSION
9923+
.. versionadded:: 21.10
99249924
99259925
Args:
99269926
user_id (:obj:`int`): Unique identifier of the target user.

telegram/_chat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3496,7 +3496,7 @@ async def verify(
34963496
For the documentation of the arguments, please see
34973497
:meth:`telegram.Bot.verify_chat`.
34983498
3499-
.. versionadded:: NEXT.VERSION
3499+
.. versionadded:: 21.10
35003500
35013501
Returns:
35023502
:obj:`bool`: On success, :obj:`True` is returned.
@@ -3527,7 +3527,7 @@ async def remove_verification(
35273527
For the documentation of the arguments, please see
35283528
:meth:`telegram.Bot.remove_chat_verification`.
35293529
3530-
.. versionadded:: NEXT.VERSION
3530+
.. versionadded:: 21.10
35313531
35323532
Returns:
35333533
:obj:`bool`: On success, :obj:`True` is returned.

telegram/_gifts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Gift(TelegramObject):
4949
upgrade_star_count (:obj:`int`, optional): The number of Telegram Stars that must be paid
5050
to upgrade the gift to a unique one
5151
52-
.. versionadded:: NEXT.VERSION
52+
.. versionadded:: 21.10
5353
5454
Attributes:
5555
id (:obj:`str`): Unique identifier of the gift
@@ -62,7 +62,7 @@ class Gift(TelegramObject):
6262
upgrade_star_count (:obj:`int`): Optional. The number of Telegram Stars that must be paid
6363
to upgrade the gift to a unique one
6464
65-
.. versionadded:: NEXT.VERSION
65+
.. versionadded:: 21.10
6666
6767
"""
6868

telegram/_inline/inlinequeryresultarticle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class InlineQueryResultArticle(InlineQueryResult):
5353
hide_url (:obj:`bool`, optional): Pass :obj:`True`, if you don't want the URL to be shown
5454
in the message.
5555
56-
.. deprecated:: NEXT.VERSION
56+
.. deprecated:: 21.10
5757
This attribute will be removed in future PTB versions. Pass an empty string as URL
5858
instead.
5959
description (:obj:`str`, optional): Short description of the result.
@@ -81,7 +81,7 @@ class InlineQueryResultArticle(InlineQueryResult):
8181
hide_url (:obj:`bool`): Optional. Pass :obj:`True`, if you don't want the URL to be shown
8282
in the message.
8383
84-
.. deprecated:: NEXT.VERSION
84+
.. deprecated:: 21.10
8585
This attribute will be removed in future PTB versions. Pass an empty string as URL
8686
instead.
8787
description (:obj:`str`): Optional. Short description of the result.
@@ -136,7 +136,7 @@ def __init__(
136136
if hide_url is not None:
137137
warn(
138138
PTBDeprecationWarning(
139-
"NEXT.VERSION",
139+
"21.10",
140140
"The argument `hide_url` will be removed in future PTB"
141141
"versions. Pass an empty string as URL instead.",
142142
),

telegram/_user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,7 +2290,7 @@ async def verify(
22902290
For the documentation of the arguments, please see
22912291
:meth:`telegram.Bot.verify_user`.
22922292
2293-
.. versionadded:: NEXT.VERSION
2293+
.. versionadded:: 21.10
22942294
22952295
Returns:
22962296
:obj:`bool`: On success, :obj:`True` is returned.
@@ -2321,7 +2321,7 @@ async def remove_verification(
23212321
For the documentation of the arguments, please see
23222322
:meth:`telegram.Bot.remove_user_verification`.
23232323
2324-
.. versionadded:: NEXT.VERSION
2324+
.. versionadded:: 21.10
23252325
23262326
Returns:
23272327
:obj:`bool`: On success, :obj:`True` is returned.

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=9, micro=0, releaselevel="final", serial=0
54+
major=21, minor=10, micro=0, releaselevel="final", serial=0
5555
)
5656
__version__: Final[str] = str(__version_info__)

telegram/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3237,7 +3237,7 @@ class VerifyLimit(IntEnum):
32373237
:meth:`~telegram.Bot.verify_user`.
32383238
The enum members of this enumeration are instances of :class:`int` and can be treated as such.
32393239
3240-
.. versionadded:: NEXT.VERSION
3240+
.. versionadded:: 21.10
32413241
"""
32423242

32433243
__slots__ = ()

telegram/ext/_defaults.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Defaults:
6060
somewhere, it will be assumed to be in :paramref:`tzinfo`. Defaults to
6161
:attr:`datetime.timezone.utc` otherwise.
6262
63-
.. deprecated:: NEXT.VERSION
63+
.. deprecated:: 21.10
6464
Support for ``pytz`` timezones is deprecated and will be removed in future
6565
versions.
6666
@@ -155,7 +155,7 @@ def __init__(
155155
# TODO: When dropping support, make sure to update _utils.datetime accordingly
156156
warn(
157157
message=PTBDeprecationWarning(
158-
version="NEXT.VERSION",
158+
version="21.10",
159159
message=(
160160
"Support for pytz timezones is deprecated and will be removed in "
161161
"future versions."

0 commit comments

Comments
 (0)
0