Skip to content

setSupergroupUsername

Function · TDLib 1.8.67 · d1085f9c

Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel

setSupergroupUsername(
  supergroup_id: int53,
  username: string
) → Ok

supergroup_id

int53

Identifier of the supergroup or channel

username

string

New value of the username. Use an empty string to remove the username. The username can't be completely removed if there is another active or disabled username