code: def set_user_profile_photo(
          self,
          photo: str
      ) -> bool:
          
  
          return bool(
              self.send(
                  functions.photos.UploadProfilePhoto(
                      file=self.save_file(photo)
                  )
              )
          )
docs: Use this method to set a new profile photo.
  
          This method only works for Users.
          Bots profile photos must be set using BotFather.
  
          Args:
              photo (``str``):
                  Profile photo to set.
                  Pass a file path as string to upload a new photo that exists on your local machine.
  
          Returns:
              True on success.
  
          Raises:
              :class:`RPCError <pyrogram.RPCError>` in case of a Telegram RPC error.