View Source ExTDLib.Method.ToggleSupergroupUsernameIsActive (ExTDLib v0.0.4)
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. Returns object_ptr<Ok>.
| Name | Type | Description |
|---|---|---|
| supergroup_id | string | Identifier of the supergroup or channel. |
| username | string | The username to change. |
| is_active | bool | Pass true to activate the username; pass false to disable it. |
More details on telegram's documentation.