Contact

@Serializable
data class Contact(val phoneNumber: String, val firstName: String, val lastName: String? = null, val userId: Long? = null, val vcard: String? = null)

This object represents a phone contact.

Api reference

Constructors

Link copied to clipboard
constructor(phoneNumber: String, firstName: String, lastName: String? = null, userId: Long? = null, vcard: String? = null)

Properties

Link copied to clipboard

Contact's first name

Link copied to clipboard
val lastName: String? = null

Optional. Contact's last name

Link copied to clipboard

Contact's phone number

Link copied to clipboard
val userId: Long? = null

Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.

Link copied to clipboard
val vcard: String? = null

Optional. Additional data about the contact in the form of a vCard