Interface SetUsername

Changes the editable username of the current user. Request type for Tdjson#setUsername.

interface SetUsername {
    @type: "setUsername";
    username: string;
}

Properties

Properties

@type: "setUsername"
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.