typescript-telegram-bot-api
Version:
Telegram Bot API wrapper for Node.js written in TypeScript
30 lines (29 loc) • 883 B
TypeScript
/**
* ## Contact
* This object represents a phone contact.
* @see https://core.telegram.org/bots/api#contact
*/
export type Contact = {
/**
* Contact's phone number
*/
phone_number: string;
/**
* Contact's first name
*/
first_name: string;
/**
* Optional. Contact's last name
*/
last_name?: string;
/**
* 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.
*/
user_id?: number;
/**
* Optional. Additional data about the contact in the form of a [vCard](https://en.wikipedia.org/wiki/VCard)
*/
vcard?: string;
};