code: public Promise<Void> editName(final int uid, final String name) {
          return getUsersStorage()
                  .getValueAsync(uid)
                  .map(User::getAccessHash)
                  .flatMap(aLong -> api(new RequestEditUserLocalName(uid, aLong, name)))
                  .flatMap(responseSeq -> updates().applyUpdate(
                          responseSeq.getSeq(),
                          responseSeq.getState(),
                          new UpdateUserLocalNameChanged(uid, name))
                  );
      }
docs: Actions