getUserProfilePhotos#

Returns: UserProfilePhotos

class aiogram.methods.get_user_profile_photos.GetUserProfilePhotos(*, user_id: int, offset: Optional[int] = None, limit: Optional[int] = 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.

Source: https://core.telegram.org/bots/api#getuserprofilephotos

user_id: int#

Unique identifier of the target user

offset: Optional[int]#

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

limit: Optional[int]#

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

build_request(bot: Bot) Request[source]#

Usage#

As bot method#

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

Method as object#

Imports:

  • from aiogram.methods.get_user_profile_photos import GetUserProfilePhotos

  • alias: from aiogram.methods import GetUserProfilePhotos

With specific bot#

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