Returns: UserProfilePhotos

class aiogram.methods.get_user_profile_photos.GetUserProfilePhotos(*, user_id: int, offset: int | None = None, limit: int | None = None, **extra_data: Any)[source]#

Use this method to get a list of profile pictures for a user. Returns a aiogram.types.user_profile_photos.UserProfilePhotos object.


user_id: int#

Unique identifier of the target user

offset: int | None#

Sequential number of the first photo to be returned. By default, all photos are returned.

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(_ModelMetaclass__context: Any) None#

We need to both initialize private attributes and call the user-defined model_post_init method.

limit: int | None#

Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.


As bot method#

result: UserProfilePhotos = await bot.get_user_profile_photos(...)

Method as object#


  • from aiogram.methods.get_user_profile_photos import GetUserProfilePhotos

  • alias: from aiogram.methods import GetUserProfilePhotos

With specific bot#

result: UserProfilePhotos = await bot(GetUserProfilePhotos(...))

As shortcut from received object#