toggle_supergroup_username_is_active


Description:

public async Ok toggle_supergroup_username_is_active (int64 supergroup_id, string username, bool is_active) throws TDLibError

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

Parameters:

supergroup_id

Identifier of the supergroup or channel

username

The username to change

is_active

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