Skip to main content
Module

x/grammy_types/message.ts>Contact

Types for the Telegram Bot API
Very Popular
Go to Latest
interface Contact
import { type Contact } from "https://deno.land/x/grammy_types@v3.1.0/message.ts";

This object represents a phone contact.

Properties

phone_number: string

Contact's phone number

first_name: string

Contact's first name

optional
last_name: string

Contact's last name

optional
user_id: number

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.

optional
vcard: string

Additional data about the contact in the form of a vCard