Skip to content

toggleSupergroupUsernameIsActive

Function · TDLib 1.8.67 · d1085f9c

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

toggleSupergroupUsernameIsActive(
  supergroup_id: int53,
  username: string,
  is_active: Bool
) → Ok

supergroup_id

int53

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