Skip to content

Commit

Permalink
Bump Version to v20.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibo-Joshi committed Sep 3, 2023
1 parent f9ccf56 commit 82c98b6
Show file tree
Hide file tree
Showing 33 changed files with 112 additions and 61 deletions.
51 changes: 51 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,57 @@
Changelog
=========

Version 20.5
============
*Released 2023-09-03*

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

Major Changes
-------------

- API 6.8 (:pr:`3853`)
- Remove Functionality Deprecated Since Bot API 6.5, 6.6 or 6.7 (:pr:`3858`)

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

- Extend Allowed Values for HTTP Version (:pr:`3823` closes :issue:`3821`)
- Add ``has_args`` Parameter to ``CommandHandler`` (:pr:`3854` by `@thatguylah <https://github.com/thatguylah>`__ closes :issue:`3798`)
- Add ``Application.stop_running()`` and Improve Marking Updates as Read on ``Updater.stop()`` (:pr:`3804`)

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

- Type Hinting Fixes for ``WebhookInfo`` (:pr:`3871`)
- Test and Document ``Exception.__cause__`` on ``NetworkError`` (:pr:`3792` closes :issue:`3778`)
- Add Support for Python 3.12 RC (:pr:`3847`)

Documentation Improvements
--------------------------

- Remove Version Check from Examples (:pr:`3846`)
- Documentation Improvements (:pr:`3803`, :pr:`3797`, :pr:`3816` by `@trim21 <https://github.com/trim21>`__, :pr:`3829` by `@aelkheir <https://github.com/aelkheir>`__)
- Provide Versions of ``customwebhookbot.py`` with Different Frameworks (:pr:`3820` closes :issue:`3717`)

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

- ``pre-commit`` autoupdate (:pr:`3824`)
- Bump ``srvaroa/labeler`` from 1.6.0 to 1.6.1 (:pr:`3870`)
- Bump ``sphinx`` from 7.0.1 to 7.1.1 (:pr:`3818`)
- Bump ``sphinx`` from 7.2.3 to 7.2.5 (:pr:`3869`)
- Bump ``furo`` from 2023.5.20 to 2023.7.26 (:pr:`3817`)
- Update ``apscheduler`` requirement from ~=3.10.3 to ~=3.10.4 (:pr:`3862`)
- Bump ``sphinx`` from 7.2.2 to 7.2.3 (:pr:`3861`)
- Bump ``pytest-asyncio`` from 0.21.0 to 0.21.1 (:pr:`3801`)
- Bump ``sphinx-paramlinks`` from 0.5.4 to 0.6.0 (:pr:`3840`)
- Update ``apscheduler`` requirement from ~=3.10.1 to ~=3.10.3 (:pr:`3851`)
- Bump ``furo`` from 2023.7.26 to 2023.8.19 (:pr:`3850`)
- Bump ``sphinx`` from 7.1.2 to 7.2.2 (:pr:`3852`)
- Bump ``sphinx`` from 7.1.1 to 7.1.2 (:pr:`3827`)


Version 20.4
============

Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
# built documents.
#
# The short X.Y version.
version = "20.4" # telegram.__version__[:3]
version = "20.5" # telegram.__version__[:3]
# The full version, including alpha/beta/rc tags.
release = "20.4" # telegram.__version__
release = "20.5" # telegram.__version__

# If your documentation needs a minimal Sphinx version, state it here.
needs_sphinx = "6.1.3"
Expand Down
22 changes: 11 additions & 11 deletions telegram/_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class Bot(TelegramObject, AsyncContextManager["Bot"]):
the file path will be passed in the
`file URI scheme <https://en.wikipedia.org/wiki/File_URI_scheme>`_.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
Removed deprecated methods ``set_sticker_set_thumb`` and ``setStickerSetThumb``.
Use :meth:`set_sticker_set_thumbnail` and :meth:`setStickerSetThumbnail` instead.
Expand Down Expand Up @@ -1109,7 +1109,7 @@ async def send_audio(
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_arg|
Args:
Expand Down Expand Up @@ -1231,7 +1231,7 @@ async def send_document(
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_arg|
Args:
Expand Down Expand Up @@ -1446,7 +1446,7 @@ async def send_video(
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_arg|
Args:
Expand Down Expand Up @@ -1576,7 +1576,7 @@ async def send_video_note(
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_arg|
Args:
Expand Down Expand Up @@ -1695,7 +1695,7 @@ async def send_animation(
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_arg|
Args:
Expand Down Expand Up @@ -2757,7 +2757,7 @@ async def answer_inline_query(
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
Removed deprecated arguments ``switch_pm_text`` and ``switch_pm_parameter``.
Args:
Expand Down Expand Up @@ -5493,7 +5493,7 @@ async def upload_sticker_file(
:meth:`create_new_sticker_set` and :meth:`add_sticker_to_set` methods (can be used multiple
times).
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
Removed deprecated parameter ``png_sticker``.
Args:
Expand Down Expand Up @@ -5561,7 +5561,7 @@ async def add_sticker_to_set(
Since Bot API 6.6, the parameter :paramref:`sticker` replace the parameters
``png_sticker``, ``tgs_sticker``, ``webm_sticker``, ``emojis``, and ``mask_position``.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
Removed deprecated parameters ``png_sticker``, ``tgs_sticker``, ``webm_sticker``,
``emojis``, and ``mask_position``.
Expand Down Expand Up @@ -5663,7 +5663,7 @@ async def create_new_sticker_set(
replace the parameters ``png_sticker``, ``tgs_sticker``,``webm_sticker``, ``emojis``,
and ``mask_position``.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
Removed the deprecated parameters mentioned above and adjusted the order of the
parameters.
Expand Down Expand Up @@ -7346,7 +7346,7 @@ async def unpin_all_general_forum_topic_messages(
:paramref:`~telegram.ChatAdministratorRights.can_pin_messages` administrator rights in the
supergroup.
.. versionadded:: NEXT.VERSION
.. versionadded:: 20.5
Args:
chat_id (:obj:`int` | :obj:`str`): |chat_id_group|
Expand Down
6 changes: 3 additions & 3 deletions telegram/_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class Chat(TelegramObject):
:meth:`telegram.Bot.get_chat`.
|datetime_localization|
.. versionadded:: NEXT.VERSION
.. versionadded:: 20.5
has_aggressive_anti_spam_enabled (:obj:`bool`, optional): :obj:`True`, if aggressive
anti-spam checks are enabled in the supergroup. The field is only available to chat
administrators. Returned only in :meth:`telegram.Bot.get_chat`.
Expand Down Expand Up @@ -277,7 +277,7 @@ class Chat(TelegramObject):
:meth:`telegram.Bot.get_chat`.
|datetime_localization|
.. versionadded:: NEXT.VERSION
.. versionadded:: 20.5
has_aggressive_anti_spam_enabled (:obj:`bool`): Optional. :obj:`True`, if aggressive
anti-spam checks are enabled in the supergroup. The field is only available to chat
administrators. Returned only in :meth:`telegram.Bot.get_chat`.
Expand Down Expand Up @@ -2934,7 +2934,7 @@ async def unpin_all_general_forum_topic_messages(
For the documentation of the arguments, please see
:meth:`telegram.Bot.unpin_all_general_forum_topic_messages`.
.. versionadded:: NEXT.VERSION
.. versionadded:: 20.5
Returns:
:obj:`bool`: On success, :obj:`True` is returned.
Expand Down
2 changes: 1 addition & 1 deletion telegram/_chatmember.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ class ChatMemberRestricted(ChatMember):
All arguments were made positional and their order was changed.
The argument can_manage_topics was added.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
Removed deprecated argument and attribute ``can_send_media_messages``.
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_chatpermissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ChatPermissions(TelegramObject):
.. versionchanged:: 20.0
:attr:`can_manage_topics` is considered as well when comparing objects of
this type in terms of equality.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
* :attr:`can_send_audios`, :attr:`can_send_documents`, :attr:`can_send_photos`,
:attr:`can_send_videos`, :attr:`can_send_video_notes` and :attr:`can_send_voice_notes`
Expand Down
2 changes: 1 addition & 1 deletion telegram/_files/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Animation(_BaseThumbedMedium):
Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`file_unique_id` is equal.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_note|
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_files/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Audio(_BaseThumbedMedium):
Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`file_unique_id` is equal.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_note|
Expand Down
2 changes: 1 addition & 1 deletion telegram/_files/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Document(_BaseThumbedMedium):
Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`file_unique_id` is equal.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_note|
Args:
Expand Down
8 changes: 4 additions & 4 deletions telegram/_files/inputmedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class InputMediaAnimation(InputMedia):
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_note|
Args:
Expand Down Expand Up @@ -320,7 +320,7 @@ class InputMediaVideo(InputMedia):
easily generate thumbnails. However, this behaviour is undocumented and might be
changed by Telegram.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_note|
Args:
Expand Down Expand Up @@ -449,7 +449,7 @@ class InputMediaAudio(InputMedia):
duration, performer and title from that video, unless otherwise specified with the
optional arguments.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_note|
Args:
Expand Down Expand Up @@ -553,7 +553,7 @@ class InputMediaDocument(InputMedia):
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_note|
Args:
Expand Down
4 changes: 2 additions & 2 deletions telegram/_files/sticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Sticker(_BaseThumbedMedium):
arguments had to be changed. Use keyword arguments to make sure that the arguments are
passed correctly.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_note|
Args:
Expand Down Expand Up @@ -226,7 +226,7 @@ class StickerSet(TelegramObject):
.. versionchanged:: 20.0
The parameter ``contains_masks`` has been removed. Use :paramref:`sticker_type` instead.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_note|
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_files/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Video(_BaseThumbedMedium):
Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`file_unique_id` is equal.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_note|
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_files/videonote.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class VideoNote(_BaseThumbedMedium):
Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`file_unique_id` is equal.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_note|
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_inline/inlinequeryresultarticle.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class InlineQueryResultArticle(InlineQueryResult):
Examples:
:any:`Inline Bot <examples.inlinebot>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
Removed the deprecated arguments and attributes ``thumb_*``.
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_inline/inlinequeryresultcontact.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class InlineQueryResultContact(InlineQueryResult):
Alternatively, you can use :attr:`input_message_content` to send a message with the specified
content instead of the contact.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_wildcard_note|
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_inline/inlinequeryresultdocument.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class InlineQueryResultDocument(InlineQueryResult):
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_wildcard_note|
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_inline/inlinequeryresultgif.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class InlineQueryResultGif(InlineQueryResult):
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_wildcard_note|
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_inline/inlinequeryresultlocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class InlineQueryResultLocation(InlineQueryResult):
Alternatively, you can use :attr:`input_message_content` to send a message with the specified
content instead of the location.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_wildcard_note|
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_inline/inlinequeryresultmpeg4gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class InlineQueryResultMpeg4Gif(InlineQueryResult):
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_wildcard_note|
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_inline/inlinequeryresultphoto.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class InlineQueryResultPhoto(InlineQueryResult):
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_url_note|
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_inline/inlinequeryresultvenue.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class InlineQueryResultVenue(InlineQueryResult):
Foursquare details and Google Pace details are mutually exclusive. However, this
behaviour is undocumented and might be changed by Telegram.
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_wildcard_note|
Args:
Expand Down
2 changes: 1 addition & 1 deletion telegram/_inline/inlinequeryresultvideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class InlineQueryResultVideo(InlineQueryResult):
.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`
.. versionchanged:: NEXT.VERSION
.. versionchanged:: 20.5
|removed_thumb_url_note|
Args:
Expand Down

0 comments on commit 82c98b6

Please sign in to comment.