SupergroupKtx.setUsername - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


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.