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

Skip to content

Commit 2ac5201

Browse files
authored
Bump Version to v21.9 (python-telegram-bot#4601)
1 parent ca7a309 commit 2ac5201

File tree

6 files changed

+44
-17
lines changed

6 files changed

+44
-17
lines changed

CHANGES.rst

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

7+
Version 21.9
8+
============
9+
10+
*Released 2024-12-07*
11+
12+
This is the technical changelog for version 21.9. 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.1 (:pr:`4594` closes :issue:`4592`)
18+
19+
Minor Changes
20+
-------------
21+
22+
- Use ``MessageLimit.DEEP_LINK_LENGTH`` in ``helpers.create_deep_linked_url`` (:pr:`4597` by `nemacysts <https://github.com/nemacysts>`_)
23+
- Allow ``Sequence`` Input for ``allowed_updates`` in ``Application`` and ``Updater`` Methods (:pr:`4589` by `nemacysts <https://github.com/nemacysts>`_)
24+
25+
Dependency Updates
26+
------------------
27+
28+
- Update ``aiolimiter`` requirement from ~=1.1.0 to >=1.1,<1.3 (:pr:`4595`)
29+
- Bump ``pytest`` from 8.3.3 to 8.3.4 (:pr:`4596`)
30+
- Bump ``codecov/codecov-action`` from 4 to 5 (:pr:`4585`)
31+
- Bump ``pylint`` to v3.3.2 to Improve Python 3.13 Support (:pr:`4590` by `nemacysts <https://github.com/nemacysts>`_)
32+
- Bump ``srvaroa/labeler`` from 1.11.1 to 1.12.0 (:pr:`4586`)
33+
734
Version 21.8
835
============
936
*Released 2024-12-01*

telegram/_payment/stars.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class AffiliateInfo(TelegramObject):
202202
considered equal, if their :attr:`affiliate_user`, :attr:`affiliate_chat`,
203203
:attr:`commission_per_mille`, :attr:`amount`, and :attr:`nanostar_amount` are equal.
204204
205-
.. versionadded:: NEXT.VERSION
205+
.. versionadded:: 21.9
206206
207207
Args:
208208
affiliate_user (:class:`telegram.User`, optional): The bot or the user that received an
@@ -315,7 +315,7 @@ class TransactionPartner(TelegramObject):
315315
AFFILIATE_PROGRAM: Final[str] = constants.TransactionPartnerType.AFFILIATE_PROGRAM
316316
""":const:`telegram.constants.TransactionPartnerType.AFFILIATE_PROGRAM`
317317
318-
.. versionadded:: NEXT.VERSION
318+
.. versionadded:: 21.9
319319
"""
320320
FRAGMENT: Final[str] = constants.TransactionPartnerType.FRAGMENT
321321
""":const:`telegram.constants.TransactionPartnerType.FRAGMENT`"""
@@ -380,7 +380,7 @@ class TransactionPartnerAffiliateProgram(TransactionPartner):
380380
This object is comparable in terms of equality. Two objects of this class are considered equal,
381381
if their :attr:`commission_per_mille` are equal.
382382
383-
.. versionadded:: NEXT.VERSION
383+
.. versionadded:: 21.9
384384
385385
Args:
386386
sponsor_user (:class:`telegram.User`, optional): Information about the bot that sponsored
@@ -490,7 +490,7 @@ class TransactionPartnerUser(TransactionPartner):
490490
affiliate (:class:`telegram.AffiliateInfo`, optional): Information about the affiliate that
491491
received a commission via this transaction
492492
493-
.. versionadded:: NEXT.VERSION
493+
.. versionadded:: 21.9
494494
invoice_payload (:obj:`str`, optional): Bot-specified invoice payload.
495495
subscription_period (:class:`datetime.timedelta`, optional): The duration of the paid
496496
subscription
@@ -514,7 +514,7 @@ class TransactionPartnerUser(TransactionPartner):
514514
affiliate (:class:`telegram.AffiliateInfo`): Optional. Information about the affiliate that
515515
received a commission via this transaction
516516
517-
.. versionadded:: NEXT.VERSION
517+
.. versionadded:: 21.9
518518
invoice_payload (:obj:`str`): Optional. Bot-specified invoice payload.
519519
subscription_period (:class:`datetime.timedelta`): Optional. The duration of the paid
520520
subscription
@@ -676,7 +676,7 @@ class StarTransaction(TelegramObject):
676676
Stars transferred by the transaction; from 0 to
677677
:tg-const:`~telegram.constants.StarTransactionsLimit.NANOSTAR_MAX_AMOUNT`
678678
679-
.. versionadded:: NEXT.VERSION
679+
.. versionadded:: 21.9
680680
date (:obj:`datetime.datetime`): Date the transaction was created as a datetime object.
681681
source (:class:`telegram.TransactionPartner`, optional): Source of an incoming transaction
682682
(e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal).
@@ -696,7 +696,7 @@ class StarTransaction(TelegramObject):
696696
Stars transferred by the transaction; from 0 to
697697
:tg-const:`~telegram.constants.StarTransactionsLimit.NANOSTAR_MAX_AMOUNT`
698698
699-
.. versionadded:: NEXT.VERSION
699+
.. versionadded:: 21.9
700700
date (:obj:`datetime.datetime`): Date the transaction was created as a datetime object.
701701
source (:class:`telegram.TransactionPartner`): Optional. Source of an incoming transaction
702702
(e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal).

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

telegram/constants.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,7 +2466,7 @@ class StarTransactions(FloatEnum):
24662466
The enum members of this enumeration are instances of :class:`float` and can be treated as
24672467
such.
24682468
2469-
.. versionadded:: NEXT.VERSION
2469+
.. versionadded:: 21.9
24702470
"""
24712471

24722472
__slots__ = ()
@@ -2499,15 +2499,15 @@ class StarTransactionsLimit(IntEnum):
24992499
""":obj:`int`: Minimum value allowed for :paramref:`~telegram.AffiliateInfo.nanostar_amount`
25002500
parameter of :class:`telegram.AffiliateInfo`.
25012501
2502-
.. versionadded:: NEXT.VERSION
2502+
.. versionadded:: 21.9
25032503
"""
25042504
NANOSTAR_MAX_AMOUNT = 999999999
25052505
""":obj:`int`: Maximum value allowed for :paramref:`~telegram.StarTransaction.nanostar_amount`
25062506
parameter of :class:`telegram.StarTransaction` and
25072507
:paramref:`~telegram.AffiliateInfo.nanostar_amount` parameter of
25082508
:class:`telegram.AffiliateInfo`.
25092509
2510-
.. versionadded:: NEXT.VERSION
2510+
.. versionadded:: 21.9
25112511
"""
25122512

25132513

@@ -2656,7 +2656,7 @@ class TransactionPartnerType(StringEnum):
26562656
AFFILIATE_PROGRAM = "affiliate_program"
26572657
""":obj:`str`: Transaction with Affiliate Program.
26582658
2659-
.. versionadded:: NEXT.VERSION
2659+
.. versionadded:: 21.9
26602660
"""
26612661
FRAGMENT = "fragment"
26622662
""":obj:`str`: Withdrawal transaction with Fragment."""
@@ -2965,7 +2965,7 @@ class InvoiceLimit(IntEnum):
29652965
""":obj:`int`: The maximum price of a subscription created wtih
29662966
:meth:`telegram.Bot.create_invoice_link`.
29672967
2968-
.. versionadded:: NEXT.VERSION
2968+
.. versionadded:: 21.9
29692969
"""
29702970

29712971

telegram/ext/_application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ def run_polling(
826826
allowed_updates (Sequence[:obj:`str`], optional): Passed to
827827
:meth:`telegram.Bot.get_updates`.
828828
829-
.. versionchanged:: NEXT.VERSION
829+
.. versionchanged:: 21.9
830830
Accepts any :class:`collections.abc.Sequence` as input instead of just a list
831831
close_loop (:obj:`bool`, optional): If :obj:`True`, the current event loop will be
832832
closed upon shutdown. Defaults to :obj:`True`.
@@ -960,7 +960,7 @@ def run_webhook(
960960
allowed_updates (Sequence[:obj:`str`], optional): Passed to
961961
:meth:`telegram.Bot.set_webhook`.
962962
963-
.. versionchanged:: NEXT.VERSION
963+
.. versionchanged:: 21.9
964964
Accepts any :class:`collections.abc.Sequence` as input instead of just a list
965965
drop_pending_updates (:obj:`bool`, optional): Whether to clean any pending updates on
966966
Telegram servers before actually starting to poll. Default is :obj:`False`.

telegram/ext/_updater.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ async def start_polling(
269269
allowed_updates (Sequence[:obj:`str`], optional): Passed to
270270
:meth:`telegram.Bot.get_updates`.
271271
272-
.. versionchanged:: NEXT.VERSION
272+
.. versionchanged:: 21.9
273273
Accepts any :class:`collections.abc.Sequence` as input instead of just a list
274274
drop_pending_updates (:obj:`bool`, optional): Whether to clean any pending updates on
275275
Telegram servers before actually starting to poll. Default is :obj:`False`.
@@ -523,7 +523,7 @@ async def start_webhook(
523523
allowed_updates (Sequence[:obj:`str`], optional): Passed to
524524
:meth:`telegram.Bot.set_webhook`. Defaults to :obj:`None`.
525525
526-
.. versionchanged:: NEXT.VERSION
526+
.. versionchanged:: 21.9
527527
Accepts any :class:`collections.abc.Sequence` as input instead of just a list
528528
max_connections (:obj:`int`, optional): Passed to
529529
:meth:`telegram.Bot.set_webhook`. Defaults to ``40``.

0 commit comments

Comments
 (0)
0