fix: removed link preview endpoint, now it's done automatically from sending conventional text

This commit is contained in:
Davidson Gomes
2023-07-16 17:57:37 -03:00
parent ec7ad70458
commit b9eb8d45b2
6 changed files with 6 additions and 70 deletions

View File

@@ -144,24 +144,6 @@ export const textMessageSchema: JSONSchema7 = {
required: ['textMessage', 'number'],
};
export const linkPreviewSchema: JSONSchema7 = {
$id: v4(),
type: 'object',
properties: {
number: { ...numberDefinition },
options: { ...optionsSchema },
linkPreview: {
type: 'object',
properties: {
text: { type: 'string' },
},
required: ['text'],
...isNotEmpty('text'),
},
},
required: ['linkPreview', 'number'],
};
export const pollMessageSchema: JSONSchema7 = {
$id: v4(),
type: 'object',