mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-02 07:55:25 +00:00
21 lines
647 B
Kotlin
21 lines
647 B
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.types
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.PrivateChat
|
|
import kotlinx.serialization.SerialName
|
|
import kotlinx.serialization.Serializable
|
|
|
|
@Serializable
|
|
data class User(
|
|
override val id: ChatId,
|
|
@SerialName(isBotField)
|
|
val isBot: Boolean = false,
|
|
@SerialName(firstNameField)
|
|
override val firstName: String,
|
|
@SerialName(lastNameField)
|
|
override val lastName: String = "",
|
|
@SerialName(usernameField)
|
|
override val username: Username? = null,
|
|
@SerialName(languageCodeField)
|
|
val languageCode: String? = null
|
|
) : PrivateChat
|