getUserProfilePhotos¶
Returns: UserProfilePhotos
- class litegram.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
litegram.types.user_profile_photos.UserProfilePhotosobject.Source: https://core.telegram.org/bots/api#getuserprofilephotos
Usage¶
As bot method¶
result: UserProfilePhotos = await bot.get_user_profile_photos(...)
Method as object¶
Imports:
from litegram.methods.get_user_profile_photos import GetUserProfilePhotosalias:
from litegram.methods import GetUserProfilePhotos
With specific bot¶
result: UserProfilePhotos = await bot(GetUserProfilePhotos(...))