Address review follow-ups for PR #1762

This commit is contained in:
latand 2026-02-10 23:19:56 +02:00
parent c855b2a656
commit c23d033492
4 changed files with 8 additions and 1 deletions

View file

@ -2,3 +2,7 @@ get_profile_photos:
method: getUserProfilePhotos
fill:
user_id: self.id
get_profile_audios:
method: getUserProfileAudios
fill:
user_id: self.id

View file

@ -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:**

View file

@ -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``.

View file

@ -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(