View Source ExTDLib.Method.SetSupergroupUsername (ExTDLib v0.0.4)

Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel. Returns object_ptr<Ok>.

NameTypeDescription
supergroup_idstringIdentifier of the supergroup or channel.
usernamestringNew 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.

More details on telegram's documentation.