Skip to content

GramIO API Reference / @gramio/contexts/dist / ContactAttachment

Class: ContactAttachment

Defined in: contexts/index.d.ts:408

This object represents a phone contact.

Extends

Constructors

Constructor

new ContactAttachment(payload): ContactAttachment

Defined in: contexts/index.d.ts:392

Parameters

ParameterType
payloadTelegramContact

Returns

ContactAttachment

Inherited from

Contact.constructor

Properties

PropertyTypeInherited fromDefined in
attachmentTypeAttachmentTypeAttachment.attachmentTypecontexts/index.d.ts:409
payloadTelegramContactContact.payloadcontexts/index.d.ts:391

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:394

MDN

Returns

string

Inherited from

Contact.[toStringTag]


firstName

Get Signature

get firstName(): string

Defined in: contexts/index.d.ts:398

Contact's first name

Returns

string

Inherited from

Contact.firstName


lastName

Get Signature

get lastName(): string

Defined in: contexts/index.d.ts:400

Contact's last name

Returns

string

Inherited from

Contact.lastName


phoneNumber

Get Signature

get phoneNumber(): string

Defined in: contexts/index.d.ts:396

Contact's phone number

Returns

string

Inherited from

Contact.phoneNumber


userId

Get Signature

get userId(): number

Defined in: contexts/index.d.ts:402

Contact's user identifier in Telegram

Returns

number

Inherited from

Contact.userId


vCard

Get Signature

get vCard(): string

Defined in: contexts/index.d.ts:404

Additional data about the contact in the form of a vCard

Returns

string

Inherited from

Contact.vCard