SetUsername constructor

const SetUsername({
  1. required String username,
})

SetUsername (setUsername) - TDLib function

Changes the editable username of the current user.

  • username: The new value of the username. Use an empty string to remove the username. The username can't be completely removed if there is another active or disabled username.

Ok is returned on completion.

Implementation

const SetUsername({
  required this.username,
});