UserProfilePhotos¶
- class telegram.UserProfilePhotos(total_count, photos, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObject
This object represents a user’s profile pictures.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
total_count
andphotos
are equal.Returned In
- Parameters:
total_count (
int
) – Total number of profile pictures the target user has.photos (Sequence[Sequence[
telegram.PhotoSize
]]) –Requested profile pictures (in up to 4 sizes each).
Changed in version 20.0: Accepts any
collections.abc.Sequence
as input instead of just a list. The input is converted to a tuple.
- photos[source]¶
Requested profile pictures (in up to 4 sizes each).
Changed in version 20.0: This attribute is now an immutable tuple.
- Type:
tuple[tuple[
telegram.PhotoSize
]]