Skip to content

setUsername

Function · TDLib 1.8.67 · d1085f9c

Changes the editable username of the current user

setUsername(
  username: string
) → Ok

username

string

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