getUser - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / getUser

getUser

suspend fun TelegramFlow.getUser(userId: Int): User

Suspend function, which returns information about a user by their identifier. This is an offline request if the current user is not a bot.

Parameters

userId - User identifier.

Return User Represents a user.