Skip to content

setProfilePhoto

Sahri Riza Umami edited this page Jun 23, 2018 · 4 revisions

Uploads a new profile photo for the current user.
If something changes, updateUser will be sent.

setProfilePhoto(photo, callback, data)
Field Type Description
photo InputFile Profile photo to set. inputFileId and inputFileRemote may still be unsupported.

Example

  • Uploads new profile photo from /tmp/photo.jpg for the current user.

    setProfilePhoto('/tmp/photo.jpg')

    Response:

    {
      ["@type"] = "ok"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally