tgsnake
Version:
Telegram MTProto framework for nodejs.
30 lines (29 loc) • 848 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Contact = void 0;
const TL_js_1 = require("../../TL.js");
class Contact extends TL_js_1.TLObject {
phoneNumber;
firstName;
lastName;
userId;
vcard;
constructor({ phoneNumber, firstName, lastName, userId, vcard, }, client) {
super(client);
this.phoneNumber = phoneNumber;
this.firstName = firstName;
this.lastName = lastName;
this.userId = userId;
this.vcard = vcard;
}
static parse(client, contact) {
return new Contact({
phoneNumber: contact.phoneNumber,
firstName: contact.firstName,
lastName: contact.lastName,
userId: contact.userId,
vcard: contact.vcard,
}, client);
}
}
exports.Contact = Contact;