UserProfilePhoto.photos is now a list of Photo objects

This commit is contained in:
Dan 2018-06-28 19:05:47 +02:00
parent 971299f592
commit fb10b3b0e7

View File

@ -26,12 +26,12 @@ class UserProfilePhotos(Object):
total_count (``int``): total_count (``int``):
Total number of profile pictures the target user has. Total number of profile pictures the target user has.
photos (List of List of :obj:`PhotoSize <pyrogram.PhotoSize>`): photos (List of :obj:`Photo <pyrogram.Photo>`):
Requested profile pictures (in up to 4 sizes each). Requested profile pictures.
""" """
ID = 0xb0700014 ID = 0xb0700014
def __init__(self, total_count: int, photos: list): def __init__(self, total_count: int, photos: list):
self.total_count = total_count # int self.total_count = total_count
self.photos = photos # Vector<Vector<PhotoSize>> self.photos = photos