mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-12 06:42:19 -06:00
feat: send ptv message
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user