feat: send ptv message

This commit is contained in:
Davidson Gomes
2024-10-28 18:02:17 -03:00
parent 0fdc47e8f0
commit a4e7baa41c
6 changed files with 106 additions and 14 deletions

View File

@@ -122,6 +122,32 @@ export const mediaMessageSchema: JSONSchema7 = {
required: ['number', 'mediatype'],
};
export const ptvMessageSchema: JSONSchema7 = {
$id: v4(),
type: 'object',
properties: {
number: { ...numberDefinition },
video: { type: 'string' },
delay: {
type: 'integer',
description: 'Enter a value in milliseconds',
},
quoted: { ...quotedOptionsSchema },
everyOne: { type: 'boolean', enum: [true, false] },
mentioned: {
type: 'array',
minItems: 1,
uniqueItems: true,
items: {
type: 'string',
pattern: '^\\d+',
description: '"mentioned" must be an array of numeric strings',
},
},
},
required: ['number'],
};
export const audioMessageSchema: JSONSchema7 = {
$id: v4(),
type: 'object',