Returns the list of user photos.
photos.photos#8dca6aa5 photos:Vector<Photo> users:Vector<User> = photos.Photos;
photos.photosSlice#15051f54 count:int photos:Vector<Photo> users:Vector<User> = photos.Photos;
---functions---
photos.getUserPhotos#b7ee553c user_id:InputUser offset:int max_id:int limit:int = photos.Photos;
Name | Type | Description |
---|---|---|
user_id | InputUser | User ID |
offset | int | Number of list elements to be skipped |
max_id | long | If a positive value was transferred, the method will return only photos with IDs less than the set one. This parameter is often useful when refetching file references ยป, as in conjuction with limit=1 and offset=-1 the photo object with the id specified in max_id can be fetched. |
limit | int | Number of list elements to be returned |
Code | Type | Description |
---|---|---|
400 | MAX_ID_INVALID | The provided max ID is invalid. |
400 | MSG_ID_INVALID | Invalid message ID provided. |
400 | USER_ID_INVALID | The provided user ID is invalid. |
How to handle file references.
Photo