setName - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / setName

setName

suspend fun TelegramFlow.setName(firstName: String?, lastName: String?): Unit

Suspend function, which changes the first and last name of the current user. If something changes, updateUser will be sent.

Parameters

firstName - The new value of the first name for the user; 1-64 characters.

lastName - The new value of the optional last name for the user; 0-64 characters.