Skip to content

Bump Version to v22.2 #4834

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 7 commits into from
Jun 29, 2025
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
5 changes: 5 additions & 0 deletions changes/22.2_2025-06-29/4834.oBWsiGWNMuoSXvJNom6N6A.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
other = "Bump Version to v22.2"
[[pull_requests]]
uid = "4834"
author_uid = "Bibo-Joshi"
closes_threads = []
2 changes: 1 addition & 1 deletion src/telegram/_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4558,7 +4558,7 @@ async def get_updates(
long polling. Defaults to ``0``, i.e. usual short polling. Should be positive,
short polling should be used for testing purposes only.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
allowed_updates (Sequence[:obj:`str`]), optional): A sequence the types of
updates you want your bot to receive. For example, specify ["message",
Expand Down
8 changes: 4 additions & 4 deletions src/telegram/_chatfullinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class ChatFullInfo(_ChatBase):
slow_mode_delay (:obj:`int` | :class:`datetime.timedelta`, optional): For supergroups,
the minimum allowed delay between consecutive messages sent by each unprivileged user.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
unrestrict_boost_count (:obj:`int`, optional): For supergroups, the minimum number of
boosts that a non-administrator user needs to add in order to ignore slow mode and chat
Expand All @@ -190,7 +190,7 @@ class ChatFullInfo(_ChatBase):

.. versionadded:: 13.4

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
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
Expand Down Expand Up @@ -349,7 +349,7 @@ class ChatFullInfo(_ChatBase):
slow_mode_delay (:obj:`int` | :class:`datetime.timedelta`): Optional. For supergroups,
the minimum allowed delay between consecutive messages sent by each unprivileged user.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
unrestrict_boost_count (:obj:`int`): Optional. For supergroups, the minimum number of
boosts that a non-administrator user needs to add in order to ignore slow mode and chat
Expand All @@ -361,7 +361,7 @@ class ChatFullInfo(_ChatBase):

.. versionadded:: 13.4

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
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
Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_chatinvitelink.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ChatInviteLink(TelegramObject):

.. versionadded:: 21.5

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
subscription_price (:obj:`int`, optional): The amount of Telegram Stars a user must pay
initially and after each subsequent subscription period to be a member of the chat
Expand Down Expand Up @@ -119,7 +119,7 @@ class ChatInviteLink(TelegramObject):

.. versionadded:: 21.5

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
subscription_price (:obj:`int`): Optional. The amount of Telegram Stars a user must pay
initially and after each subsequent subscription period to be a member of the chat
Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_files/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Animation(_BaseThumbedMedium):
duration (:obj:`int` | :class:`datetime.timedelta`, optional): Duration of the video
in seconds as defined by the sender.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
file_name (:obj:`str`, optional): Original animation filename as defined by the sender.
mime_type (:obj:`str`, optional): MIME type of the file as defined by the sender.
Expand All @@ -68,7 +68,7 @@ class Animation(_BaseThumbedMedium):
duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the video in seconds
as defined by the sender.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
file_name (:obj:`str`): Optional. Original animation filename as defined by the sender.
mime_type (:obj:`str`): Optional. MIME type of the file as defined by the sender.
Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_files/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Audio(_BaseThumbedMedium):
duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the audio in
seconds as defined by the sender.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
performer (:obj:`str`, optional): Performer of the audio as defined by the sender or by
audio tags.
Expand All @@ -66,7 +66,7 @@ class Audio(_BaseThumbedMedium):
duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the audio in seconds as
defined by the sender.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
performer (:obj:`str`): Optional. Performer of the audio as defined by the sender or by
audio tags.
Expand Down
16 changes: 8 additions & 8 deletions src/telegram/_files/inputmedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class InputPaidMediaVideo(InputPaidMedia):
height (:obj:`int`, optional): Video height.
duration (:obj:`int` | :class:`datetime.timedelta`, optional): Video duration in seconds.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
supports_streaming (:obj:`bool`, optional): Pass :obj:`True`, if the uploaded video is
suitable for streaming.
Expand All @@ -240,7 +240,7 @@ class InputPaidMediaVideo(InputPaidMedia):
height (:obj:`int`): Optional. Video height.
duration (:obj:`int` | :class:`datetime.timedelta`): Optional. Video duration in seconds.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
supports_streaming (:obj:`bool`): Optional. :obj:`True`, if the uploaded video is
suitable for streaming.
Expand Down Expand Up @@ -337,7 +337,7 @@ class InputMediaAnimation(InputMedia):
duration (:obj:`int` | :class:`datetime.timedelta`, optional): Animation duration
in seconds.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
has_spoiler (:obj:`bool`, optional): Pass :obj:`True`, if the animation needs to be covered
with a spoiler animation.
Expand Down Expand Up @@ -369,7 +369,7 @@ class InputMediaAnimation(InputMedia):
duration (:obj:`int` | :class:`datetime.timedelta`): Optional. Animation duration
in seconds.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
has_spoiler (:obj:`bool`): Optional. :obj:`True`, if the animation is covered with a
spoiler animation.
Expand Down Expand Up @@ -571,7 +571,7 @@ class InputMediaVideo(InputMedia):
height (:obj:`int`, optional): Video height.
duration (:obj:`int` | :class:`datetime.timedelta`, optional): Video duration in seconds.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
supports_streaming (:obj:`bool`, optional): Pass :obj:`True`, if the uploaded video is
suitable for streaming.
Expand Down Expand Up @@ -611,7 +611,7 @@ class InputMediaVideo(InputMedia):
height (:obj:`int`): Optional. Video height.
duration (:obj:`int` | :class:`datetime.timedelta`): Optional. Video duration in seconds.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
supports_streaming (:obj:`bool`): Optional. :obj:`True`, if the uploaded video is
suitable for streaming.
Expand Down Expand Up @@ -740,7 +740,7 @@ class InputMediaAudio(InputMedia):
duration (:obj:`int` | :class:`datetime.timedelta`, optional): Duration of the audio
in seconds as defined by the sender.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
performer (:obj:`str`, optional): Performer of the audio as defined by the sender or by
audio tags.
Expand All @@ -766,7 +766,7 @@ class InputMediaAudio(InputMedia):
duration (:obj:`int` | :class:`datetime.timedelta`): Optional. Duration of the audio
in seconds.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
performer (:obj:`str`): Optional. Performer of the audio as defined by the sender or by
audio tags.
Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_files/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Location(TelegramObject):
message sending date, during which the location can be updated, in seconds. For active
live locations only.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
heading (:obj:`int`, optional): The direction in which user is moving, in degrees;
:tg-const:`telegram.Location.MIN_HEADING`-:tg-const:`telegram.Location.MAX_HEADING`.
Expand All @@ -60,7 +60,7 @@ class Location(TelegramObject):
message sending date, during which the location can be updated, in seconds. For active
live locations only.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
heading (:obj:`int`): Optional. The direction in which user is moving, in degrees;
:tg-const:`telegram.Location.MIN_HEADING`-:tg-const:`telegram.Location.MAX_HEADING`.
Expand Down
8 changes: 4 additions & 4 deletions src/telegram/_files/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Video(_BaseThumbedMedium):
duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the video
in seconds as defined by the sender.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
file_name (:obj:`str`, optional): Original filename as defined by the sender.
mime_type (:obj:`str`, optional): MIME type of a file as defined by the sender.
Expand All @@ -67,7 +67,7 @@ class Video(_BaseThumbedMedium):
from which the video will play in the message
.. versionadded:: 21.11

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|

Attributes:
Expand All @@ -81,7 +81,7 @@ class Video(_BaseThumbedMedium):
duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the video in seconds
as defined by the sender.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
file_name (:obj:`str`): Optional. Original filename as defined by the sender.
mime_type (:obj:`str`): Optional. MIME type of a file as defined by the sender.
Expand All @@ -97,7 +97,7 @@ class Video(_BaseThumbedMedium):
from which the video will play in the message
.. versionadded:: 21.11

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
"""

Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_files/videonote.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class VideoNote(_BaseThumbedMedium):
duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the video in
seconds as defined by the sender.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
file_size (:obj:`int`, optional): File size in bytes.
thumbnail (:class:`telegram.PhotoSize`, optional): Video thumbnail.
Expand All @@ -66,7 +66,7 @@ class VideoNote(_BaseThumbedMedium):
duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the video in seconds as
defined by the sender.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
file_size (:obj:`int`): Optional. File size in bytes.
thumbnail (:class:`telegram.PhotoSize`): Optional. Video thumbnail.
Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_files/voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Voice(_BaseMedium):
duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the audio in
seconds as defined by the sender.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
mime_type (:obj:`str`, optional): MIME type of the file as defined by the sender.
file_size (:obj:`int`, optional): File size in bytes.
Expand All @@ -55,7 +55,7 @@ class Voice(_BaseMedium):
duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the audio in seconds as
defined by the sender.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
mime_type (:obj:`str`): Optional. MIME type of the file as defined by the sender.
file_size (:obj:`int`): Optional. File size in bytes.
Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_inline/inlinequeryresultaudio.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class InlineQueryResultAudio(InlineQueryResult):
audio_duration (:obj:`int` | :class:`datetime.timedelta`, optional): Audio duration
in seconds.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
caption (:obj:`str`, optional): Caption,
0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH` characters after entities
Expand All @@ -78,7 +78,7 @@ class InlineQueryResultAudio(InlineQueryResult):
audio_duration (:obj:`int` | :class:`datetime.timedelta`): Optional. Audio duration
in seconds.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
caption (:obj:`str`): Optional. Caption,
0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH` characters after entities
Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_inline/inlinequeryresultgif.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class InlineQueryResultGif(InlineQueryResult):
gif_duration (:obj:`int` | :class:`datetime.timedelta`, optional): Duration of the GIF
in seconds.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
thumbnail_url (:obj:`str`): URL of the static (JPEG or GIF) or animated (MPEG4)
thumbnail for the result.
Expand Down Expand Up @@ -98,7 +98,7 @@ class InlineQueryResultGif(InlineQueryResult):
gif_duration (:obj:`int` | :class:`datetime.timedelta`): Optional. Duration of the GIF
in seconds.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
thumbnail_url (:obj:`str`): URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail
for the result.
Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_inline/inlinequeryresultlocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class InlineQueryResultLocation(InlineQueryResult):
:tg-const:`telegram.InlineQueryResultLocation.MIN_LIVE_PERIOD` and
:tg-const:`telegram.InlineQueryResultLocation.MAX_LIVE_PERIOD`.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
heading (:obj:`int`, optional): For live locations, a direction in which the user is
moving, in degrees. Must be between
Expand Down Expand Up @@ -99,7 +99,7 @@ class InlineQueryResultLocation(InlineQueryResult):
:tg-const:`telegram.constants.LocationLimit.LIVE_PERIOD_FOREVER` for live
locations that can be edited indefinitely.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
heading (:obj:`int`): Optional. For live locations, a direction in which the user is
moving, in degrees. Must be between
Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_inline/inlinequeryresultmpeg4gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class InlineQueryResultMpeg4Gif(InlineQueryResult):
mpeg4_duration (:obj:`int` | :class:`datetime.timedelta`, optional): Video duration
in seconds.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
thumbnail_url (:obj:`str`): URL of the static (JPEG or GIF) or animated (MPEG4)
thumbnail for the result.
Expand Down Expand Up @@ -100,7 +100,7 @@ class InlineQueryResultMpeg4Gif(InlineQueryResult):
mpeg4_duration (:obj:`int` | :class:`datetime.timedelta`): Optional. Video duration
in seconds.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
thumbnail_url (:obj:`str`): URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail
for the result.
Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_inline/inlinequeryresultvideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class InlineQueryResultVideo(InlineQueryResult):
video_duration (:obj:`int` | :class:`datetime.timedelta`, optional): Video duration
in seconds.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
description (:obj:`str`, optional): Short description of the result.
reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): Inline keyboard attached
Expand Down Expand Up @@ -119,7 +119,7 @@ class InlineQueryResultVideo(InlineQueryResult):
video_duration (:obj:`int` | :class:`datetime.timedelta`): Optional. Video duration
in seconds.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
description (:obj:`str`): Optional. Short description of the result.
reply_markup (:class:`telegram.InlineKeyboardMarkup`): Optional. Inline keyboard attached
Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_inline/inlinequeryresultvoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class InlineQueryResultVoice(InlineQueryResult):
voice_duration (:obj:`int` | :class:`datetime.timedelta`, optional): Recording duration
in seconds.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): Inline keyboard attached
to the message.
Expand All @@ -88,7 +88,7 @@ class InlineQueryResultVoice(InlineQueryResult):
voice_duration (:obj:`int` | :class:`datetime.timedelta`): Optional. Recording duration
in seconds.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
reply_markup (:class:`telegram.InlineKeyboardMarkup`): Optional. Inline keyboard attached
to the message.
Expand Down
4 changes: 2 additions & 2 deletions src/telegram/_inline/inputlocationmessagecontent.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class InputLocationMessageContent(InputMessageContent):
:tg-const:`telegram.constants.LocationLimit.LIVE_PERIOD_FOREVER` for live
locations that can be edited indefinitely.

.. versionchanged:: NEXT.VERSION
.. versionchanged:: v22.2
|time-period-input|
heading (:obj:`int`, optional): For live locations, a direction in which the user is
moving, in degrees. Must be between
Expand All @@ -72,7 +72,7 @@ class InputLocationMessageContent(InputMessageContent):
:tg-const:`telegram.InputLocationMessageContent.MIN_LIVE_PERIOD` and
:tg-const:`telegram.InputLocationMessageContent.MAX_LIVE_PERIOD`.

.. deprecated:: NEXT.VERSION
.. deprecated:: v22.2
|time-period-int-deprecated|
heading (:obj:`int`): Optional. For live locations, a direction in which the user is
moving, in degrees. Must be between
Expand Down
Loading
Loading