Skip to content

Commit e314e78

Browse files
authored
Bump Version to v21.6 (python-telegram-bot#4486)
1 parent 67a97ae commit e314e78

File tree

11 files changed

+55
-24
lines changed

11 files changed

+55
-24
lines changed

CHANGES.rst

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

7+
Version 21.6
8+
============
9+
10+
*Released 2024-09-19*
11+
12+
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>`_.
13+
14+
New Features
15+
------------
16+
17+
- Full Support for Bot API 7.10 (:pr:`4461` closes :issue:`4459`, :pr:`4460`, :pr:`4463` by `aelkheir <https://github.com/aelkheir>`_, :pr:`4464`)
18+
- Add Parameter ``httpx_kwargs`` to ``HTTPXRequest`` (:pr:`4451` closes :issue:`4424`)
19+
20+
Minor Changes
21+
-------------
22+
23+
- Improve Type Completeness (:pr:`4466`)
24+
25+
Internal Changes
26+
----------------
27+
28+
- Update Python 3.13 Test Suite to RC2 (:pr:`4471`)
29+
- Enforce the ``offline_bot`` Fixture in ``Test*WithoutRequest`` (:pr:`4465`)
30+
- Make Tests for ``telegram.ext`` Independent of Networking (:pr:`4454`)
31+
- Rename Testing Base Classes (:pr:`4453`)
32+
33+
Dependency Updates
34+
------------------
35+
36+
- Bump ``pytest`` from 8.3.2 to 8.3.3 (:pr:`4475`)
37+
738
Version 21.5
839
============
940

telegram/_bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9220,7 +9220,7 @@ async def send_paid_media(
92209220
0-:tg-const:`telegram.constants.InvoiceLimit.MAX_PAYLOAD_LENGTH` bytes. This will
92219221
not be displayed to the user, use it for your internal processes.
92229222
9223-
.. versionadded:: NEXT.VERSION
9223+
.. versionadded:: 21.6
92249224
caption (:obj:`str`, optional): Caption of the media to be sent,
92259225
0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH` characters.
92269226
parse_mode (:obj:`str`, optional): |parse_mode|

telegram/_chatboost.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class ChatBoostSourceGiveaway(ChatBoostSource):
202202
prize_star_count (:obj:`int`, optional): The number of Telegram Stars to be split between
203203
giveaway winners; for Telegram Star giveaways only.
204204
205-
.. versionadded:: NEXT.VERSION
205+
.. versionadded:: 21.6
206206
is_unclaimed (:obj:`bool`, optional): :obj:`True`, if the giveaway was completed, but
207207
there was no user to win the prize.
208208
@@ -215,7 +215,7 @@ class ChatBoostSourceGiveaway(ChatBoostSource):
215215
prize_star_count (:obj:`int`): Optional. The number of Telegram Stars to be split between
216216
giveaway winners; for Telegram Star giveaways only.
217217
218-
.. versionadded:: NEXT.VERSION
218+
.. versionadded:: 21.6
219219
is_unclaimed (:obj:`bool`): Optional. :obj:`True`, if the giveaway was completed, but
220220
there was no user to win the prize.
221221
"""

telegram/_giveaway.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Giveaway(TelegramObject):
5959
prize_star_count (:obj:`int`, optional): The number of Telegram Stars to be split between
6060
giveaway winners; for Telegram Star giveaways only.
6161
62-
.. versionadded:: NEXT.VERSION
62+
.. versionadded:: 21.6
6363
premium_subscription_month_count (:obj:`int`, optional): The number of months the Telegram
6464
Premium subscription won from the giveaway will be active for; for Telegram Premium
6565
giveaways only.
@@ -83,7 +83,7 @@ class Giveaway(TelegramObject):
8383
prize_star_count (:obj:`int`): Optional. The number of Telegram Stars to be split between
8484
giveaway winners; for Telegram Star giveaways only.
8585
86-
.. versionadded:: NEXT.VERSION
86+
.. versionadded:: 21.6
8787
premium_subscription_month_count (:obj:`int`): Optional. The number of months the Telegram
8888
Premium subscription won from the giveaway will be active for; for Telegram Premium
8989
giveaways only.
@@ -163,13 +163,13 @@ class GiveawayCreated(TelegramObject):
163163
prize_star_count (:obj:`int`, optional): The number of Telegram Stars to be
164164
split between giveaway winners; for Telegram Star giveaways only.
165165
166-
.. versionadded:: NEXT.VERSION
166+
.. versionadded:: 21.6
167167
168168
Attributes:
169169
prize_star_count (:obj:`int`): Optional. The number of Telegram Stars to be
170170
split between giveaway winners; for Telegram Star giveaways only.
171171
172-
.. versionadded:: NEXT.VERSION
172+
.. versionadded:: 21.6
173173
174174
"""
175175

@@ -204,7 +204,7 @@ class GiveawayWinners(TelegramObject):
204204
prize_star_count (:obj:`int`, optional): The number of Telegram Stars to be split between
205205
giveaway winners; for Telegram Star giveaways only.
206206
207-
.. versionadded:: NEXT.VERSION
207+
.. versionadded:: 21.6
208208
additional_chat_count (:obj:`int`, optional): The number of other chats the user had to
209209
join in order to be eligible for the giveaway
210210
premium_subscription_month_count (:obj:`int`, optional): The number of months the Telegram
@@ -229,7 +229,7 @@ class GiveawayWinners(TelegramObject):
229229
prize_star_count (:obj:`int`): Optional. The number of Telegram Stars to be split between
230230
giveaway winners; for Telegram Star giveaways only.
231231
232-
.. versionadded:: NEXT.VERSION
232+
.. versionadded:: 21.6
233233
premium_subscription_month_count (:obj:`int`): Optional. The number of months the Telegram
234234
Premium subscription won from the giveaway will be active for
235235
unclaimed_prize_count (:obj:`int`): Optional. Number of undistributed prizes
@@ -337,7 +337,7 @@ class GiveawayCompleted(TelegramObject):
337337
is_star_giveaway (:obj:`bool`, optional): :obj:`True`, if the giveaway is a Telegram Star
338338
giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.
339339
340-
.. versionadded:: NEXT.VERSION
340+
.. versionadded:: 21.6
341341
Attributes:
342342
winner_count (:obj:`int`): Number of winners in the giveaway
343343
unclaimed_prize_count (:obj:`int`): Optional. Number of undistributed prizes
@@ -346,7 +346,7 @@ class GiveawayCompleted(TelegramObject):
346346
is_star_giveaway (:obj:`bool`): Optional. :obj:`True`, if the giveaway is a Telegram Star
347347
giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.
348348
349-
.. versionadded:: NEXT.VERSION
349+
.. versionadded:: 21.6
350350
"""
351351

352352
__slots__ = ("giveaway_message", "is_star_giveaway", "unclaimed_prize_count", "winner_count")

telegram/_paidmedia.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ class PaidMediaPurchased(TelegramObject):
300300
Note:
301301
In Python :keyword:`from` is a reserved word. Use :paramref:`from_user` instead.
302302
303-
.. versionadded:: NEXT.VERSION
303+
.. versionadded:: 21.6
304304
305305
Args:
306306
from_user (:class:`telegram.User`): User who purchased the media.

telegram/_payment/stars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ class TransactionPartnerUser(TransactionPartner):
330330
.. versionadded:: 21.5
331331
paid_media_payload (:obj:`str`, optional): Optional. Bot-specified paid media payload.
332332
333-
.. versionadded:: NEXT.VERSION
333+
.. versionadded:: 21.6
334334
335335
Attributes:
336336
type (:obj:`str`): The type of the transaction partner,
@@ -343,7 +343,7 @@ class TransactionPartnerUser(TransactionPartner):
343343
.. versionadded:: 21.5
344344
paid_media_payload (:obj:`str`): Optional. Optional. Bot-specified paid media payload.
345345
346-
.. versionadded:: NEXT.VERSION
346+
.. versionadded:: 21.6
347347
348348
"""
349349

telegram/_update.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class Update(TelegramObject):
160160
purchased_paid_media (:class:`telegram.PaidMediaPurchased`, optional): A user purchased
161161
paid media with a non-empty payload sent by the bot in a non-channel chat.
162162
163-
.. versionadded:: NEXT.VERSION
163+
.. versionadded:: 21.6
164164
165165
166166
Attributes:
@@ -273,7 +273,7 @@ class Update(TelegramObject):
273273
purchased_paid_media (:class:`telegram.PaidMediaPurchased`): Optional. A user purchased
274274
paid media with a non-empty payload sent by the bot in a non-channel chat.
275275
276-
.. versionadded:: NEXT.VERSION
276+
.. versionadded:: 21.6
277277
"""
278278

279279
__slots__ = (
@@ -399,7 +399,7 @@ class Update(TelegramObject):
399399
PURCHASED_PAID_MEDIA: Final[str] = constants.UpdateType.PURCHASED_PAID_MEDIA
400400
""":const:`telegram.constants.UpdateType.PURCHASED_PAID_MEDIA`
401401
402-
.. versionadded:: NEXT.VERSION
402+
.. versionadded:: 21.6
403403
"""
404404

405405
ALL_TYPES: Final[List[str]] = list(constants.UpdateType)
@@ -496,7 +496,7 @@ def effective_user(self) -> Optional["User"]:
496496
This property now also considers :attr:`business_connection`, :attr:`business_message`
497497
and :attr:`edited_business_message`.
498498
499-
.. versionchanged:: NEXT.VERSION
499+
.. versionchanged:: 21.6
500500
This property now also considers :attr:`purchased_paid_media`.
501501
502502
Example:

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

telegram/constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2782,7 +2782,7 @@ class UpdateType(StringEnum):
27822782
PURCHASED_PAID_MEDIA = "purchased_paid_media"
27832783
""":obj:`str`: Updates with :attr:`telegram.Update.purchased_paid_media`.
27842784
2785-
.. versionadded:: NEXT.VERSION
2785+
.. versionadded:: 21.6
27862786
"""
27872787

27882788

@@ -2871,14 +2871,14 @@ class InvoiceLimit(IntEnum):
28712871
passed as :paramref:`~telegram.Bot.send_paid_media.star_count` parameter of
28722872
:meth:`telegram.Bot.send_paid_media`.
28732873
2874-
.. versionadded:: NEXT.VERSION
2874+
.. versionadded:: 21.6
28752875
"""
28762876
MAX_STAR_COUNT = 2500
28772877
""":obj:`int`: Maximum amount of starts that must be paid to buy access to a paid media
28782878
passed as :paramref:`~telegram.Bot.send_paid_media.star_count` parameter of
28792879
:meth:`telegram.Bot.send_paid_media`.
28802880
2881-
.. versionadded:: NEXT.VERSION
2881+
.. versionadded:: 21.6
28822882
"""
28832883

28842884

telegram/ext/_handlers/paidmediapurchasedhandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class PaidMediaPurchasedHandler(BaseHandler[Update, CCT, RT]):
3232
"""Handler class to handle Telegram
3333
:attr:`purchased paid media <telegram.Update.purchased_paid_media>`.
3434
35-
.. versionadded:: NEXT.VERSION
35+
.. versionadded:: 21.6
3636
3737
Args:
3838
callback (:term:`coroutine function`): The callback function for this handler. Will be

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy