mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-11 22:32:20 -06:00
feat: send pix button
This commit is contained in:
@@ -413,14 +413,18 @@ export const buttonsMessageSchema: JSONSchema7 = {
|
||||
properties: {
|
||||
type: {
|
||||
type: 'string',
|
||||
enum: ['reply', 'copy', 'url', 'call'],
|
||||
enum: ['reply', 'copy', 'url', 'call', 'pix'],
|
||||
},
|
||||
displayText: { type: 'string' },
|
||||
id: { type: 'string' },
|
||||
url: { type: 'string' },
|
||||
phoneNumber: { type: 'string' },
|
||||
currency: { type: 'string' },
|
||||
name: { type: 'string' },
|
||||
keyType: { type: 'string', enum: ['phone', 'email', 'cpf', 'cnpj', 'random'] },
|
||||
key: { type: 'string' },
|
||||
},
|
||||
required: ['type', 'displayText'],
|
||||
required: ['type'],
|
||||
...isNotEmpty('id', 'url', 'phoneNumber'),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user