GramIO API Reference / @gramio/contexts/dist / ContactAttachment
Class: ContactAttachment
Defined in: contexts/index.d.ts:498
This object represents a phone contact.
Extends
Constructors
Constructor
new ContactAttachment(
payload):ContactAttachment
Defined in: contexts/index.d.ts:482
Parameters
| Parameter | Type |
|---|---|
payload | TelegramContact |
Returns
ContactAttachment
Inherited from
Properties
| Property | Type | Inherited from | Defined in |
|---|---|---|---|
attachmentType | AttachmentType | Attachment.attachmentType | contexts/index.d.ts:499 |
payload | TelegramContact | Contact.payload | contexts/index.d.ts:481 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:484
Returns
string
Inherited from
firstName
Get Signature
get firstName():
string
Defined in: contexts/index.d.ts:488
Contact's first name
Returns
string
Inherited from
lastName
Get Signature
get lastName():
string
Defined in: contexts/index.d.ts:490
Contact's last name
Returns
string
Inherited from
phoneNumber
Get Signature
get phoneNumber():
string
Defined in: contexts/index.d.ts:486
Contact's phone number
Returns
string
Inherited from
userId
Get Signature
get userId():
number
Defined in: contexts/index.d.ts:492
Contact's user identifier in Telegram
Returns
number
Inherited from
vCard
Get Signature
get vCard():
string
Defined in: contexts/index.d.ts:494
Additional data about the contact in the form of a vCard
Returns
string