Interface ToggleSupergroupUsernameIsActive

Changes active state for a username of a supergroup or channel, requires owner privileges in the supergroup or channel. 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#toggleSupergroupUsernameIsActive.

interface ToggleSupergroupUsernameIsActive {
    @type: "toggleSupergroupUsernameIsActive";
    is_active?: boolean;
    supergroup_id: number;
    username: string;
}

Properties

@type: "toggleSupergroupUsernameIsActive"
is_active?: boolean

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

supergroup_id: number

Identifier of the supergroup or channel.

username: string

The username to change.