aiogram/docs/api/methods/get_user_profile_photos.md
Alex Root Junior 6be0b36305
Dev 3.x api 4.8 (#317)
* AIOG-T-20 Bot API 4.8

* AIOG-T-20 Update aliases

* AIOG-T-20 Add parse mode passing in sendPoll method

* AIOG-T-20 Small changes in docs

* AIOG-T-20 Revert overriding remove keyboard default value and add tests

* AIOG-T-20 Bot API 4.8
2020-05-02 23:01:32 +03:00

1.4 KiB

getUserProfilePhotos

Description

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

Arguments

Name Type Description
user_id #!python3 int Unique identifier of the target user
offset #!python3 Optional[int] Optional. Sequential number of the first photo to be returned. By default, all photos are returned.
limit #!python3 Optional[int] Optional. Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.

Response

Type: #!python3 UserProfilePhotos

Description: Returns a UserProfilePhotos object.

Usage

As bot method

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

Method as object

Imports:

  • from aiogram.methods import GetUserProfilePhotos
  • from aiogram.api.methods import GetUserProfilePhotos
  • from aiogram.api.methods.get_user_profile_photos import GetUserProfilePhotos

In handlers with current bot

result: UserProfilePhotos = await GetUserProfilePhotos(...)

With specific bot

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