Interface ToggleUsernameIsActive

Changes active state for a username of the current user. The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached. Request type for Tdjson#toggleUsernameIsActive.

interface ToggleUsernameIsActive {
    @type: "toggleUsernameIsActive";
    is_active?: boolean;
    username: string;
}

Properties

@type: "toggleUsernameIsActive"
is_active?: boolean

Pass true to activate the username; pass false to disable it.

username: string

The username to change.