TDLib v0.0.2 TDLib.Method.SetUsername View Source

Changes the username of the current user. If something changes, updateUser will be sent. Returns object_ptr.

NameTypeDescription
usernamestringThe new value of the username. Use an empty string to remove the username.

More details on telegram’s documentation.