Layer 220
method Users Bots
photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos;

Parameters

Name Type Description
UserId InputUser User ID
Offset int Number of list elements to be skipped
MaxId 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

Returns

photos.Photos

Possible Errors

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.

Gogram Example

// PhotosGetUserPhotos - positional arguments
result, err := client.PhotosGetUserPhotos(&tg.InputUserSelf{}, 0, int64(0), 0)
if err != nil {
    // handle error
}
// result is *tg.PhotosPhotos