User

data class User(id: Long, is_bot: Boolean, first_name: String, last_name: String?, username: String?, language_code: String?, can_join_groups: Boolean?, can_read_all_group_messages: Boolean?, supports_inline_queries: Boolean?) : TelegramModel

This object represents a Telegram user or bot.

Constructors

User
Link copied to clipboard
fun User(id: Long, is_bot: Boolean, first_name: String, last_name: String? = null, username: String? = null, language_code: String? = null, can_join_groups: Boolean? = null, can_read_all_group_messages: Boolean? = null, supports_inline_queries: Boolean? = null)
Creates a User.

Properties

can_join_groups
Link copied to clipboard
val can_join_groups: Boolean? = null
Optional.
can_read_all_group_messages
Link copied to clipboard
val can_read_all_group_messages: Boolean? = null
Optional.
first_name
Link copied to clipboard
val first_name: String
User's or bot's first name
id
Link copied to clipboard
val id: Long
Unique identifier for this user or bot.
is_bot
Link copied to clipboard
val is_bot: Boolean
True, if this user is a bot
language_code
Link copied to clipboard
val language_code: String? = null
Optional.
last_name
Link copied to clipboard
val last_name: String? = null
Optional.
supports_inline_queries
Link copied to clipboard
val supports_inline_queries: Boolean? = null
Optional.
username
Link copied to clipboard
val username: String? = null
Optional.