diff --git a/changes/unreleased/5326.OAIUA0X9LFJzA48BR7mpvg.toml b/changes/unreleased/5326.OAIUA0X9LFJzA48BR7mpvg.toml new file mode 100644 index 00000000000..4b5349ef721 --- /dev/null +++ b/changes/unreleased/5326.OAIUA0X9LFJzA48BR7mpvg.toml @@ -0,0 +1,5 @@ +documentation = """Removed six ``Args`` entries that named a parameter the callable does not accept: ``type`` on the four ``PaidMedia`` subclasses, ``file`` on ``decrypt``, and ``proxy`` on ``ApplicationBuilder.get_updates_proxy``.""" +[[pull_requests]] +uid = "5326" +author_uids = ["darkdi"] +closes_threads = [] diff --git a/src/telegram/_paidmedia.py b/src/telegram/_paidmedia.py index 6b9ec318fb4..07522257953 100644 --- a/src/telegram/_paidmedia.py +++ b/src/telegram/_paidmedia.py @@ -106,7 +106,6 @@ class PaidMediaPreview(PaidMedia): equality comparison now considers integer durations and equivalent timedeltas as equal. Args: - type (:obj:`str`): Type of the paid media, always :tg-const:`telegram.PaidMedia.PREVIEW`. width (:obj:`int`, optional): Media width as defined by the sender. height (:obj:`int`, optional): Media height as defined by the sender. duration (:obj:`int` | :class:`datetime.timedelta`, optional): Duration of the media in @@ -160,7 +159,6 @@ class PaidMediaPhoto(PaidMedia): .. versionadded:: 21.4 Args: - type (:obj:`str`): Type of the paid media, always :tg-const:`telegram.PaidMedia.PHOTO`. photo (Sequence[:class:`telegram.PhotoSize`]): The photo. Attributes: @@ -194,7 +192,6 @@ class PaidMediaVideo(PaidMedia): .. versionadded:: 21.4 Args: - type (:obj:`str`): Type of the paid media, always :tg-const:`telegram.PaidMedia.VIDEO`. video (:class:`telegram.Video`): The video. Attributes: @@ -228,7 +225,6 @@ class PaidMediaLivePhoto(PaidMedia): .. versionadded:: 22.8 Args: - type (:obj:`str`): Type of the paid media, always :tg-const:`telegram.PaidMedia.LIVE_PHOTO` live_photo (:class:`telegram.LivePhoto`): The photo. Attributes: diff --git a/src/telegram/_passport/credentials.py b/src/telegram/_passport/credentials.py index 6252ffba0a0..91e1c6f6ca1 100644 --- a/src/telegram/_passport/credentials.py +++ b/src/telegram/_passport/credentials.py @@ -57,8 +57,6 @@ def decrypt(secret, hash, data): base64 encoded string. data (:obj:`str` or :obj:`bytes`): The data to decrypt, either as bytes or as a base64 encoded string. - file (:obj:`bool`): Force data to be treated as raw data, instead of trying to - b64decode it. Raises: :class:`PassportDecryptionError`: Given hash does not match hash of decrypted data. diff --git a/src/telegram/ext/_applicationbuilder.py b/src/telegram/ext/_applicationbuilder.py index b0417148cd2..b9074539abd 100644 --- a/src/telegram/ext/_applicationbuilder.py +++ b/src/telegram/ext/_applicationbuilder.py @@ -737,8 +737,8 @@ def get_updates_proxy( .. versionadded:: 20.7 Args: - proxy (:obj:`str` | ``httpx.Proxy`` | ``httpx.URL``): The URL to a proxy server, - a ``httpx.Proxy`` object or a ``httpx.URL`` object. See + get_updates_proxy (:obj:`str` | ``httpx.Proxy`` | ``httpx.URL``): The URL to a + proxy server, a ``httpx.Proxy`` object or a ``httpx.URL`` object. See :paramref:`telegram.request.HTTPXRequest.proxy` for more information. Returns: