8000 Bump Version to v21.6 by Bibo-Joshi · Pull Request #4486 · python-telegram-bot/python-telegram-bot · GitHub
[go: up one dir, main page]

Skip to content

Bump Version to v21.6 #4486

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

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,37 @@
Changelog
=========

Version 21.6
============

*Released 2024-09-19*

This is the technical changelog for version 21.6. More elaborate release notes can be found in the news channel `@pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>`_.

New Features
------------

- Full Support for Bot API 7.10 (:pr:`4461` closes :issue:`4459`, :pr:`4460`, :pr:`4463` by `aelkheir <https://github.com/aelkheir>`_, :pr:`4464`)
- Add Parameter ``httpx_kwargs`` to ``HTTPXRequest`` (:pr:`4451` closes :issue:`4424`)

Minor Changes
-------------

- Improve Type Completeness (:pr:`4466`)

Internal Changes
----------------

- Update Python 3.13 Test Suite to RC2 (:pr:`4471`)
- Enforce the ``offline_bot`` Fixture in ``Test*WithoutRequest`` (:pr:`4465`)
- Make Tests for ``telegram.ext`` Independent of Networking (:pr:`4454`)
- Rename Testing Base Classes (:pr:`4453`)

Dependency Updates
------------------

- Bump ``pytest`` from 8.3.2 to 8.3.3 (:pr:`4475`)

Version 21.5
============

Expand Down
2 changes: 1 addition & 1 deletion telegram/_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -9220,7 +9220,7 @@ async def send_paid_media(
0-:tg-const:`telegram.constants.InvoiceLimit.MAX_PAYLOAD_LENGTH` bytes. This will
not be displayed to the user, use it for your internal processes.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
caption (:obj:`str`, optional): Caption of the media to be sent,
0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH` characters.
parse_mode (:obj:`str`, optional): |parse_mode|
Expand Down
4 changes: 2 additions & 2 deletions telegram/_chatboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class ChatBoostSourceGiveaway(ChatBoostSource):
prize_star_count (:obj:`int`, optional): The number of Telegram Stars to be split between
giveaway winners; for Telegram Star giveaways only.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
is_unclaimed (:obj:`bool`, optional): :obj:`True`, if the giveaway was completed, but
there was no user to win the prize.

Expand All @@ -215,7 +215,7 @@ class ChatBoostSourceGiveaway(ChatBoostSource):
prize_star_count (:obj:`int`): Optional. The number of Telegram Stars to be split between
giveaway winners; for Telegram Star giveaways only.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
is_unclaimed (:obj:`bool`): Optional. :obj:`True`, if the giveaway was completed, but
there was no user to win the prize.
"""
Expand Down
16 changes: 8 additions & 8 deletions telegram/_giveaway.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Giveaway(TelegramObject):
prize_star_count (:obj:`int`, optional): The number of Telegram Stars to be split between
giveaway winners; for Telegram Star giveaways only.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
premium_subscription_month_count (:obj:`int`, optional): The number of months the Telegram
Premium subscription won from the giveaway will be active for; for Telegram Premium
giveaways only.
Expand All @@ -83,7 +83,7 @@ class Giveaway(TelegramObject):
prize_star_count (:obj:`int`): Optional. The number of Telegram Stars to be split between
giveaway winners; for Telegram Star giveaways only.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
premium_subscription_month_count (:obj:`int`): Optional. The number of months the Telegram
Premium subscription won from the giveaway will be active for; for Telegram Premium
giveaways only.
Expand Down Expand Up @@ -163,13 +163,13 @@ class GiveawayCreated(TelegramObject):
prize_star_count (:obj:`int`, optional): The number of Telegram Stars to be
split between giveaway winners; for Telegram Star giveaways only.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6

Attributes:
prize_star_count (:obj:`int`): Optional. The number of Telegram Stars to be
split between giveaway winners; for Telegram Star giveaways only.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6

"""

Expand Down Expand Up @@ -204,7 +204,7 @@ class GiveawayWinners(TelegramObject):
prize_star_count (:obj:`int`, optional): The number of Telegram Stars to be split between
giveaway winners; for Telegram Star giveaways only.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
additional_chat_count (:obj:`int`, optional): The number of other chats the user had to
join in order to be eligible for the giveaway
premium_subscription_month_count (:obj:`int`, optional): The number of months the Telegram
Expand All @@ -229,7 +229,7 @@ class GiveawayWinners(TelegramObject):
prize_star_count (:obj:`int`): Optional. The number of Telegram Stars to be split between
giveaway winners; for Telegram Star giveaways only.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
premium_subscription_month_count (:obj:`int`): Optional. The number of months the Telegram
Premium subscription won from the giveaway will be active for
unclaimed_prize_count (:obj:`int`): Optional. Number of undistributed prizes
Expand Down Expand Up @@ -337,7 +337,7 @@ class GiveawayCompleted(TelegramObject):
is_star_giveaway (:obj:`bool`, optional): :obj:`True`, if the giveaway is a Telegram Star
giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
Attributes:
winner_count (:obj:`int`): Number of winners in the giveaway
unclaimed_prize_count (:obj:`int`): Optional. Number of undistributed prizes
Expand All @@ -346,7 +346,7 @@ class GiveawayCompleted(TelegramObject):
is_star_giveaway (:obj:`bool`): Optional. :obj:`True`, if the giveaway is a Telegram Star
giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
"""

__slots__ = ("giveaway_message", "is_star_giveaway", "unclaimed_prize_count", "winner_count")
Expand Down
2 changes: 1 addition & 1 deletion telegram/_paidmedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class PaidMediaPurchased(TelegramObject):
Note:
In Python :keyword:`from` is a reserved word. Use :paramref:`from_user` instead.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6

Args:
from_user (:class:`telegram.User`): User who purchased the media.
Expand Down
4 changes: 2 additions & 2 deletions telegram/_payment/stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ class TransactionPartnerUser(TransactionPartner):
.. versionadded:: 21.5
paid_media_payload (:obj:`str`, optional): Optional. Bot-specified paid media payload.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6

Attributes:
type (:obj:`str`): The type of the transaction partner,
Expand All @@ -343,7 +343,7 @@ class TransactionPartnerUser(TransactionPartner):
.. versionadded:: 21.5
paid_media_payload (:obj:`str`): Optional. Optional. Bot-specified paid media payload.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6

"""

Expand Down
8 changes: 4 additions & 4 deletions telegram/_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Update(TelegramObject):
purchased_paid_media (:class:`telegram.PaidMediaPurchased`, optional): A user purchased
paid media with a non-empty payload sent by the bot in a non-channel chat.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6


Attributes:
Expand Down Expand Up @@ -273,7 +273,7 @@ class Update(TelegramObject):
purchased_paid_media (:class:`telegram.PaidMediaPurchased`): Optional. A user purchased
paid media with a non-empty payload sent by the bot in a non-channel chat.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
"""

__slots__ = (
Expand Down Expand Up @@ -399,7 +399,7 @@ class Update(TelegramObject):
PURCHASED_PAID_MEDIA: Final[str] = constants.UpdateType.PURCHASED_PAID_MEDIA
""":const:`telegram.constants.UpdateType.PURCHASED_PAID_MEDIA`

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
"""

ALL_TYPES: Final[List[str]] = list(constants.UpdateType)
Expand Down Expand Up @@ -496,7 +496,7 @@ def effective_user(self) -> Optional["User"]:
This property now also considers :attr:`business_connection`, :attr:`business_message`
and :attr:`edited_business_message`.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: 21.6
This property now also considers :attr:`purchased_paid_media`.

Example:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ def __str__(self) -> str:


__version_info__: Final[Version] = Version(
major=21, minor=5, micro=0, releaselevel="final", serial=0
major=21, minor=6, micro=0, releaselevel="final", serial=0
)
__version__: Final[str] = str(__version_info__)
6 changes: 3 additions & 3 deletions telegram/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2782,7 +2782,7 @@ class UpdateType(StringEnum):
PURCHASED_PAID_MEDIA = "purchased_paid_media"
""":obj:`str`: Updates with :attr:`telegram.Update.purchased_paid_media`.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
"""


Expand Down Expand Up @@ -2871,14 +2871,14 @@ class InvoiceLimit(IntEnum):
passed as :paramref:`~telegram.Bot.send_paid_media.star_count` parameter of
:meth:`telegram.Bot.send_paid_media`.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
"""
MAX_STAR_COUNT = 2500
""":obj:`int`: Maximum amount of starts that must be paid to buy access to a paid media
passed as :paramref:`~telegram.Bot.send_paid_media.star_count` parameter of
:meth:`telegram.Bot.send_paid_media`.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6
"""


Expand Down
2 changes: 1 addition & 1 deletion telegram/ext/_handlers/paidmediapurchasedhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PaidMediaPurchasedHandler(BaseHandler[Update, CCT, RT]):
"""Handler class to handle Telegram
:attr:`purchased paid media <telegram.Update.purchased_paid_media>`.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6

Args:
callback (:term:`coroutine function`): The callback function for this handler. Will be
Expand Down
2 changes: 1 addition & 1 deletion telegram/request/_httpxrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class HTTPXRequest(BaseRequest):
No runtime warnings will be issued about parameters that are overridden in this
way.

.. versionadded:: NEXT.VERSION
.. versionadded:: 21.6

"""

Expand Down
Loading
0