Skip to content

Commit 22eb434

Browse files
committed
Bump version to v21.0
1 parent ae28587 commit 22eb434

17 files changed

+127
-79
lines changed

CHANGES.rst

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

7+
Version 21.0
8+
============
9+
10+
*Released 2024-03-06*
11+
12+
This is the technical changelog for version 21.0. More elaborate release notes can be found in the news channel `@pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>`__.
13+
14+
Major Changes
15+
-------------
16+
17+
- Remove Functionality Deprecated in API 7.0 (:pr:`4114` closes :issue:`4099`)
18+
- API 7.1 (:pr:`4118`)
19+
20+
New Features
21+
------------
22+
23+
- Add Parameter ``media_write_timeout`` to ``HTTPXRequest`` and Method ``ApplicationBuilder.media_write_timeout`` (:pr:`4120` closes :issue:`3864`)
24+
- Handle Properties in ``TelegramObject.__setstate__`` (:pr:`4134` closes :issue:`4111`)
25+
26+
Bug Fixes
27+
---------
28+
29+
- Add Missing Slot to ``Updater`` (:pr:`4130` closes :issue:`4127`)
30+
31+
Documentation Improvements
32+
--------------------------
33+
34+
- Improve HTML Download of Documentation (:pr:`4146` closes :issue:`4050`)
35+
- Documentation Improvements (:pr:`4109`, :issue:`4116`)
36+
- Update Copyright to 2024 (:pr:`4121` by `@aelkheir <https://github.com/aelkheir>`__ closes :issue:`4041`)
37+
38+
Internal Changes
39+
----------------
40+
41+
- Apply ``pre-commit`` Checks More Widely (:pr:`4135`)
42+
- Refactor and Overhaul ``test_official`` (:pr:`4087` closes :issue:`3874`)
43+
- Run Unit Tests in PRs on Requirements Changes (:pr:`4144`)
44+
- Make ``Updater.stop`` Independent of ``CancelledError`` (:pr:`4126`)
45+
46+
Dependency Updates
47+
------------------
48+
49+
- Relax Upper Bound for ``httpx`` Dependency (:pr:`4148`)
50+
- Bump ``test-summary/action`` from 2.2 to 2.3 (:pr:`4142`)
51+
- Update ``cachetools`` requirement from ~=5.3.2 to ~=5.3.3 (:pr:`4141`)
52+
- Update ``httpx`` requirement from ~=0.26.0 to ~=0.27.0 (:pr:`4131`)
53+
54+
755
Version 20.8
856
============
957

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
# built documents.
2121
#
2222
# The short X.Y version.
23-
version = "20.8" # telegram.__version__[:3]
23+
version = "21.0" # telegram.__version__[:3]
2424
# The full version, including alpha/beta/rc tags.
25-
release = "20.8" # telegram.__version__
25+
release = "21.0" # telegram.__version__
2626

2727
# If your documentation needs a minimal Sphinx version, state it here.
2828
needs_sphinx = "6.1.3"

telegram/_bot.py

Lines changed: 38 additions & 38 deletions
Large diffs are not rendered by default.

telegram/_chat.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,12 @@ class Chat(TelegramObject):
223223
boosts that a non-administrator user needs to add in order to ignore slow mode and chat
224224
permissions. Returned only in :meth:`telegram.Bot.get_chat`.
225225
226-
.. versionadded:: NEXT.VERSION
226+
.. versionadded:: 21.0
227227
custom_emoji_sticker_set_name (:obj:`str`, optional): For supergroups, the name of the
228228
group's custom emoji sticker set. Custom emoji from this set can be used by all users
229229
and bots in the group. Returned only in :meth:`telegram.Bot.get_chat`.
230230
231-
.. versionadded:: NEXT.VERSION
231+
.. versionadded:: 21.0
232232
233233
Attributes:
234234
id (:obj:`int`): Unique identifier for this chat. This number may be greater than 32 bits
@@ -366,12 +366,12 @@ class Chat(TelegramObject):
366366
boosts that a non-administrator user needs to add in order to ignore slow mode and chat
367367
permissions. Returned only in :meth:`telegram.Bot.get_chat`.
368368
369-
.. versionadded:: NEXT.VERSION
369+
.. versionadded:: 21.0
370370
custom_emoji_sticker_set_name (:obj:`str`): Optional. For supergroups, the name of the
371371
group's custom emoji sticker set. Custom emoji from this set can be used by all users
372372
and bots in the group. Returned only in :meth:`telegram.Bot.get_chat`.
373373
374-
.. versionadded:: NEXT.VERSION
374+
.. versionadded:: 21.0
375375
376376
.. _topics: https://telegram.org/blog/topics-in-groups-collectible-usernames#topics-in-groups
377377
.. _accent colors: https://core.telegram.org/bots/api#accent-colors

telegram/_chatadministratorrights.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,19 @@ class ChatAdministratorRights(TelegramObject):
7373
stories to the chat.
7474
7575
.. versionadded:: 20.6
76-
.. versionchanged:: NEXT.VERSION
76+
.. versionchanged:: 21.0
7777
|non_optional_story_argument|
7878
can_edit_stories (:obj:`bool`): :obj:`True`, if the administrator can edit
7979
stories posted by other users.
8080
8181
.. versionadded:: 20.6
82-
.. versionchanged:: NEXT.VERSION
82+
.. versionchanged:: 21.0
8383
|non_optional_story_argument|
8484
can_delete_stories (:obj:`bool`): :obj:`True`, if the administrator can delete
8585
stories posted by other users.
8686
8787
.. versionadded:: 20.6
88-
.. versionchanged:: NEXT.VERSION
88+
.. versionchanged:: 21.0
8989
|non_optional_story_argument|
9090
can_manage_topics (:obj:`bool`, optional): :obj:`True`, if the user is allowed
9191
to create, rename, close, and reopen forum topics; for supergroups only.
@@ -121,19 +121,19 @@ class ChatAdministratorRights(TelegramObject):
121121
stories to the chat.
122122
123123
.. versionadded:: 20.6
124-
.. versionchanged:: NEXT.VERSION
124+
.. versionchanged:: 21.0
125125
|non_optional_story_argument|
126126
can_edit_stories (:obj:`bool`): :obj:`True`, if the administrator can edit
127127
stories posted by other users.
128128
129129
.. versionadded:: 20.6
130-
.. versionchanged:: NEXT.VERSION
130+
.. versionchanged:: 21.0
131131
|non_optional_story_argument|
132132
can_delete_stories (:obj:`bool`): :obj:`True`, if the administrator can delete
133133
stories posted by other users.
134134
135135
.. versionadded:: 20.6
136-
.. versionchanged:: NEXT.VERSION
136+
.. versionchanged:: 21.0
137137
|non_optional_story_argument|
138138
can_manage_topics (:obj:`bool`): Optional. :obj:`True`, if the user is allowed
139139
to create, rename, close, and reopen forum topics; for supergroups only.
@@ -192,7 +192,7 @@ def __init__(
192192
# Not actually optionals but because of backwards compatability we pretend they are
193193
if can_post_stories is None or can_edit_stories is None or can_delete_stories is None:
194194
raise TypeError(
195-
"As of vNEXT.VERSION can_post_stories, can_edit_stories and can_delete_stories"
195+
"As of v21.0 can_post_stories, can_edit_stories and can_delete_stories"
196196
" must be set in order to create this object."
197197
)
198198
self.can_post_stories: bool = can_post_stories

telegram/_chatboost.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ChatBoostAdded(TelegramObject):
4242
Two objects of this class are considered equal, if their
4343
:attr:`boost_count` are equal.
4444
45-
.. versionadded:: NEXT.VERSION
45+
.. versionadded:: 21.0
4646
4747
Args:
4848
boost_count (:obj:`int`): Number of boosts added by the user.

telegram/_chatmember.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -228,19 +228,19 @@ class ChatMemberAdministrator(ChatMember):
228228
stories to the chat.
229229
230230
.. versionadded:: 20.6
231-
.. versionchanged:: NEXT.VERSION
231+
.. versionchanged:: 21.0
232232
|non_optional_story_argument|
233233
can_edit_stories (:obj:`bool`): :obj:`True`, if the administrator can edit
234234
stories posted by other users.
235235
236236
.. versionadded:: 20.6
237-
.. versionchanged:: NEXT.VERSION
237+
.. versionchanged:: 21.0
238238
|non_optional_story_argument|
239239
can_delete_stories (:obj:`bool`): :obj:`True`, if the administrator can delete
240240
stories posted by other users.
241241
242242
.. versionadded:: 20.6
243-
.. versionchanged:: NEXT.VERSION
243+
.. versionchanged:: 21.0
244244
|non_optional_story_argument|
245245
can_manage_topics (:obj:`bool`, optional): :obj:`True`, if the user is allowed
246246
to create, rename, close, and reopen forum topics; for supergroups only.
@@ -287,19 +287,19 @@ class ChatMemberAdministrator(ChatMember):
287287
stories to the chat.
288288
289289
.. versionadded:: 20.6
290-
.. versionchanged:: NEXT.VERSION
290+
.. versionchanged:: 21.0
291291
|non_optional_story_argument|
292292
can_edit_stories (:obj:`bool`): :obj:`True`, if the administrator can edit
293293
stories posted by other users.
294294
295295
.. versionadded:: 20.6
296-
.. versionchanged:: NEXT.VERSION
296+
.. versionchanged:: 21.0
297297
|non_optional_story_argument|
298298
can_delete_stories (:obj:`bool`): :obj:`True`, if the administrator can delete
299299
stories posted by other users.
300300
301301
.. versionadded:: 20.6
302-
.. versionchanged:: NEXT.VERSION
302+
.. versionchanged:: 21.0
303303
|non_optional_story_argument|
304304
can_manage_topics (:obj:`bool`): Optional. :obj:`True`, if the user is allowed
305305
to create, rename, close, and reopen forum topics; for supergroups only
@@ -365,7 +365,7 @@ def __init__(
365365
# Not actually optionals but because of backwards compatability we pretend they are
366366
if can_post_stories is None or can_edit_stories is None or can_delete_stories is None:
367367
raise TypeError(
368-
"As of NEXT.VERSION can_post_stories, can_edit_stories and can_delete_stories "
368+
"As of 21.0 can_post_stories, can_edit_stories and can_delete_stories "
369369
"must be set in order to create this object."
370370
)
371371
self.can_post_stories: bool = can_post_stories

telegram/_inline/inputtextmessagecontent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class InputTextMessageContent(InputMessageContent):
6666
argument. PTB will automatically convert this argument to that one, but
6767
for advanced options, please use :paramref:`link_preview_options` directly.
6868
69-
.. versionchanged:: NEXT.VERSION
69+
.. versionchanged:: 21.0
7070
|keyword_only_arg|
7171
7272
Attributes:

telegram/_keyboardbutton.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class KeyboardButton(TelegramObject):
5252
versions released after 3 February, 2023. Older clients will display unsupported
5353
message.
5454
55-
.. versionchanged:: NEXT.VERSION
55+
.. versionchanged:: 21.0
5656
Removed deprecated argument and attribute ``request_user``.
5757
.. versionchanged:: 20.0
5858
:attr:`web_app` is considered as well when comparing objects of this type in terms of

telegram/_message.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class MaybeInaccessibleMessage(TelegramObject):
121121
Objects of this class are comparable in terms of equality. Two objects of this class are
122122
considered equal, if their :attr:`message_id` and :attr:`chat` are equal
123123
124-
.. versionchanged:: NEXT.VERSION
124+
.. versionchanged:: 21.0
125125
``__bool__`` is no longer overriden and defaults to Pythons standard implementation.
126126
127127
.. versionadded:: 20.8
@@ -244,7 +244,7 @@ class Message(MaybeInaccessibleMessage):
244244
Note:
245245
In Python :keyword:`from` is a reserved word. Use :paramref:`from_user` instead.
246246
247-
.. versionchanged:: NEXT.VERSION
247+
.. versionchanged:: 21.0
248248
Removed deprecated arguments and attributes ``user_shared``, ``forward_from``,
249249
``forward_from_chat``, ``forward_from_message_id``, ``forward_signature``,
250250
``forward_sender_name`` and ``forward_date``.
@@ -525,15 +525,15 @@ class Message(MaybeInaccessibleMessage):
525525
reply_to_story (:class:`telegram.Story`, optional): For replies to a story, the original
526526
story.
527527
528-
.. versionadded:: NEXT.VERSION
528+
.. versionadded:: 21.0
529529
boost_added (:class:`telegram.ChatBoostAdded`, optional): Service message: user boosted
530530
the chat.
531531
532-
.. versionadded:: NEXT.VERSION
532+
.. versionadded:: 21.0
533533
sender_boost_count (:obj:`int`, optional): If the sender of the
534534
message boosted the chat, the number of boosts added by the user.
535535
536-
.. versionadded:: NEXT.VERSION
536+
.. versionadded:: 21.0
537537
538538
Attributes:
539539
message_id (:obj:`int`): Unique message identifier inside this chat.
@@ -807,15 +807,15 @@ class Message(MaybeInaccessibleMessage):
807807
reply_to_story (:class:`telegram.Story`): Optional. For replies to a story, the original
808808
story.
809809
810-
.. versionadded:: NEXT.VERSION
810+
.. versionadded:: 21.0
811811
boost_added (:class:`telegram.ChatBoostAdded`): Optional. Service message: user boosted
812812
the chat.
813813
814-
.. versionadded:: NEXT.VERSION
814+
.. versionadded:: 21.0
815815
sender_boost_count (:obj:`int`): Optional. If the sender of the
816816
message boosted the chat, the number of boosts added by the user.
817817
818-
.. versionadded:: NEXT.VERSION
818+
.. versionadded:: 21.0
819819
820820
.. |custom_emoji_no_md1_support| replace:: Since custom emoji entities are not supported by
821821
:attr:`~telegram.constants.ParseMode.MARKDOWN`, this method now raises a

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