User

fun User(id: Int, isBot: Boolean, firstName: String, lastName: String? = null, username: String? = null, languageCode: String? = null, canJoinGroups: Boolean = false, canReadAllGroupMessages: Boolean = false, supportsInlineQueries: Boolean = false)

Parameters

id

Unique identifier for this user or bot

isBot

True, if this user is a bot

firstName

User's or bot's first name

lastName

Optional. User's or bot's last name

username

Optional. User's or bot's username

languageCode

Optional. IETF language tag of the user's language

canJoinGroups

Optional. True, if the bot can be invited to groups. Returned only in getMe.

canReadAllGroupMessages

Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.

supportsInlineQueries

Optional. True, if the bot supports inline queries. Returned only in getMe.