libtd-ktx / kotlinx.telegram.coroutines / setSupergroupUsername
setSupergroupUsername
suspend fun TelegramFlow.setSupergroupUsername(supergroupId: Int, username: String?): Unit
Suspend function, which changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel.
Parameters
supergroupId - Identifier of the supergroup or channel.
username - New value of the username. Use an empty string to remove the username.