mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-15 11:42:53 -06:00
added url in vcard
This commit is contained in:
parent
a216c9cc37
commit
2338787dbb
@ -381,6 +381,7 @@ export const contactMessageSchema: JSONSchema7 = {
|
|||||||
phoneNumber: { type: 'string', minLength: 10 },
|
phoneNumber: { type: 'string', minLength: 10 },
|
||||||
organization: { type: 'string' },
|
organization: { type: 'string' },
|
||||||
email: { type: 'string' },
|
email: { type: 'string' },
|
||||||
|
url: { type: 'string' },
|
||||||
},
|
},
|
||||||
required: ['fullName', 'wuid', 'phoneNumber'],
|
required: ['fullName', 'wuid', 'phoneNumber'],
|
||||||
...isNotEmpty('fullName'),
|
...isNotEmpty('fullName'),
|
||||||
|
@ -127,6 +127,7 @@ export class ContactMessage {
|
|||||||
phoneNumber: string;
|
phoneNumber: string;
|
||||||
organization?: string;
|
organization?: string;
|
||||||
email?: string;
|
email?: string;
|
||||||
|
url?: string;
|
||||||
}
|
}
|
||||||
export class SendContactDto extends Metadata {
|
export class SendContactDto extends Metadata {
|
||||||
contactMessage: ContactMessage[];
|
contactMessage: ContactMessage[];
|
||||||
|
@ -1439,6 +1439,10 @@ export class WAStartupService {
|
|||||||
result += `EMAIL:${contact.email}\n`;
|
result += `EMAIL:${contact.email}\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (contact.url) {
|
||||||
|
result += `URL:${contact.url}\n`;
|
||||||
|
}
|
||||||
|
|
||||||
result +=
|
result +=
|
||||||
`item1.TEL;waid=${contact.wuid}:${contact.phoneNumber}\n` +
|
`item1.TEL;waid=${contact.wuid}:${contact.phoneNumber}\n` +
|
||||||
'item1.X-ABLabel:Celular\n' +
|
'item1.X-ABLabel:Celular\n' +
|
||||||
|
Loading…
Reference in New Issue
Block a user