feat: send media with form-data

This commit is contained in:
Davidson Gomes
2024-10-04 14:45:16 -03:00
parent 44e152bea2
commit ec2d7e349f
12 changed files with 197 additions and 48 deletions

View File

@@ -108,7 +108,7 @@ export const mediaMessageSchema: JSONSchema7 = {
},
},
},
required: ['number', 'mediatype', 'media'],
required: ['number', 'mediatype'],
};
export const audioMessageSchema: JSONSchema7 = {
@@ -134,7 +134,7 @@ export const audioMessageSchema: JSONSchema7 = {
},
},
},
required: ['number', 'audio'],
required: ['number'],
};
export const statusMessageSchema: JSONSchema7 = {
@@ -158,7 +158,7 @@ export const statusMessageSchema: JSONSchema7 = {
},
allContacts: { type: 'boolean', enum: [true, false] },
},
required: ['type', 'content'],
required: ['type'],
};
export const stickerMessageSchema: JSONSchema7 = {
@@ -184,7 +184,7 @@ export const stickerMessageSchema: JSONSchema7 = {
},
},
},
required: ['number', 'sticker'],
required: ['number'],
};
export const locationMessageSchema: JSONSchema7 = {