Available types

Contact

This object represents a phone contact.

fields

fieldtyperequireddescription
phone_numberstringrequiredContact's phone number
first_namestringrequiredContact's first name
last_namestringoptionalOptional. Contact's last name
user_idnumberoptionalOptional. 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.
vcardstringoptionalOptional. Additional data about the contact in the form of a vCard

import

types.ts
import type { Contact } from "@yaebal/types";

used by

types