CommonUser

@Serializable
data class CommonUser(val id: UserId, val firstName: String, val lastName: String = "", val username: Username? = null, val ietfLanguageCode: IetfLang? = null, val isPremium: Boolean = false, val addedToAttachmentMenu: Boolean = false) : PreviewUser, WithOptionalLanguageCode, PossiblyPremiumChat, AbleToAddInAttachmentMenuChat

Constructors

Link copied to clipboard
constructor(id: UserId, firstName: String, lastName: String = "", username: Username? = null, languageCode: String)
constructor(id: UserId, firstName: String, lastName: String = "", username: Username? = null, ietfLanguageCode: IetfLang? = null, isPremium: Boolean = false, addedToAttachmentMenu: Boolean = false)

Properties

Link copied to clipboard
@SerialName(value = "added_to_attachment_menu")
open override val addedToAttachmentMenu: Boolean = false
Link copied to clipboard
@SerialName(value = "first_name")
open override val firstName: String
Link copied to clipboard
open override val id: UserId
Link copied to clipboard
@SerialName(value = "language_code")
@Serializable(with = IetfLangSerializer::class)
open override val ietfLanguageCode: IetfLang? = null
Link copied to clipboard
@SerialName(value = "is_premium")
open override val isPremium: Boolean = false
Link copied to clipboard
open val languageCode: String?
Link copied to clipboard
@SerialName(value = "last_name")
open override val lastName: String
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "username")
open override val username: Username? = null

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard