setUsername - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / setUsername

setUsername

suspend fun TelegramFlow.setUsername(username: String?): Unit

Suspend function, which changes the username of the current user. If something changes, updateUser will be sent.

Parameters

username - The new value of the username. Use an empty string to remove the username.