libtd-ktx / kotlinx.telegram.extensions / SupergroupKtx / setUsername
setUsername
open suspend fun Supergroup.setUsername(username: String?): Unit
Suspend function, which changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel.
Parameters
username - New value of the username. Use an empty string to remove the username.