telegramx.js

Contact

interface

This object represents a phone contact.

Declaration

interface Contact 

Properties

first_nameproperty#
first_name: string;

Contact's first name

last_nameproperty#
last_name?: string;

Optional. Contact's last name

phone_number: string;

Contact's phone number

user_idproperty#
user_id?: number;

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.

vcardproperty#
vcard?: string;

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