TDLib v0.0.2 TDLib.Method.SetSupergroupUsername View Source

Changes the username of the supergroup or channel, requires creator privileges in the supergroup or channel. Returns object_ptr.

NameTypeDescription
supergroup_idnumberIdentifier of the supergroup or channel.
usernamestringNew value of the username. Use an empty string to remove the username.

More details on telegram’s documentation.