GramIO API Reference / @gramio/contexts/dist / Contact
Class: Contact
Defined in: contexts/index.d.ts:382
This object represents a phone contact.
Extended by
Constructors
Constructor
new Contact(
payload):Contact
Defined in: contexts/index.d.ts:384
Parameters
| Parameter | Type |
|---|---|
payload | TelegramContact |
Returns
Contact
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramContact | contexts/index.d.ts:383 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:386
Returns
string
firstName
Get Signature
get firstName():
string
Defined in: contexts/index.d.ts:390
Contact's first name
Returns
string
lastName
Get Signature
get lastName():
string
Defined in: contexts/index.d.ts:392
Contact's last name
Returns
string
phoneNumber
Get Signature
get phoneNumber():
string
Defined in: contexts/index.d.ts:388
Contact's phone number
Returns
string
userId
Get Signature
get userId():
number
Defined in: contexts/index.d.ts:394
Contact's user identifier in Telegram
Returns
number
vCard
Get Signature
get vCard():
string
Defined in: contexts/index.d.ts:396
Additional data about the contact in the form of a vCard
Returns
string