Contact

data class Contact(phone_number: String, first_name: String, last_name: String?, user_id: Long?, vcard: String?) : TelegramModel

This object represents a phone contact.

Constructors

Contact
Link copied to clipboard
fun Contact(phone_number: String, first_name: String, last_name: String? = null, user_id: Long? = null, vcard: String? = null)
Creates a Contact.

Properties

first_name
Link copied to clipboard
val first_name: String
Contact's first name
last_name
Link copied to clipboard
val last_name: String? = null
Optional.
phone_number
Link copied to clipboard
val phone_number: String
Contact's phone number
user_id
Link copied to clipboard
val user_id: Long? = null
Optional.
vcard
Link copied to clipboard
val vcard: String? = null
Optional.