diff --git a/.butcher/types/User/aliases.yml b/.butcher/types/User/aliases.yml index 85d2188d..51e3e370 100644 --- a/.butcher/types/User/aliases.yml +++ b/.butcher/types/User/aliases.yml @@ -2,3 +2,7 @@ get_profile_photos: method: getUserProfilePhotos fill: user_id: self.id +get_profile_audios: + method: getUserProfileAudios + fill: + user_id: self.id diff --git a/CHANGES/1761.feature.rst b/CHANGES/1761.feature.rst index 5b3fd4bb..2cdf9da4 100644 --- a/CHANGES/1761.feature.rst +++ b/CHANGES/1761.feature.rst @@ -23,6 +23,7 @@ Updated to Bot API 9.4 (February 9, 2026) - Added :class:`aiogram.methods.set_my_profile_photo.SetMyProfilePhoto` method - allows bots to set their profile photo - Added :class:`aiogram.methods.remove_my_profile_photo.RemoveMyProfilePhoto` method - allows bots to remove their profile photo - Added :class:`aiogram.methods.get_user_profile_audios.GetUserProfileAudios` method - retrieves a user's profile audio list +- Added :meth:`aiogram.types.user.User.get_profile_audios` shortcut - creates a prefilled :class:`aiogram.methods.get_user_profile_audios.GetUserProfileAudios` request with :code:`user_id` **New Types:** diff --git a/CHANGES/1762.bugfix.rst b/CHANGES/1762.bugfix.rst deleted file mode 100644 index 66945328..00000000 --- a/CHANGES/1762.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix review issues from Bot API 9.4 PR: fix Makefile reformat scope inconsistency, add ``User.get_profile_audios()`` shortcut method, improve test coverage for ``VideoQuality`` and ``ChatOwnerLeft``. diff --git a/aiogram/types/user.py b/aiogram/types/user.py index ea42b85e..7f03504c 100644 --- a/aiogram/types/user.py +++ b/aiogram/types/user.py @@ -167,6 +167,9 @@ class User(TelegramObject): :param limit: Limits the number of audios to be retrieved. Values between 1-100 are accepted. Defaults to 100. :return: instance of method :class:`aiogram.methods.get_user_profile_audios.GetUserProfileAudios` """ + # DO NOT EDIT MANUALLY!!! + # This method was auto-generated via `butcher` + from aiogram.methods import GetUserProfileAudios return GetUserProfileAudios(