Guides

Profile PhotosUSER-ONLY

User Walkthrough 11 of 50

Users can manage the account’s profile photo or video.

Setting a Profile Photo

updateProfilePhoto accepts a local path, URL, or another supported file source.

await client.updateProfilePhoto("profile.jpg");

Setting a Profile Video

updateProfileVideo sets a video instead.

await client.updateProfileVideo("profile.mp4");

Listing Profile Photos

getProfilePhotos retrieves profile photos for an account’s user identifier.

const me = await client.getMe();
const photos = await client.getProfilePhotos(me.id);

Removing the Profile Photo

To remove the current profile photo or video, call removeProfilePhoto.

await client.removeProfilePhoto();