Add blockUser functionality

This commit is contained in:
w3nder
2024-02-20 17:05:07 -03:00
parent e2c67d7dae
commit 249489e697
6 changed files with 57 additions and 0 deletions

View File

@@ -539,6 +539,17 @@ export const privacySettingsSchema: JSONSchema7 = {
required: ['privacySettings'],
};
export const blockUserSchema: JSONSchema7 = {
$id: v4(),
type: 'object',
properties: {
number: { type: 'string' },
status: { type: 'string', enum: ['block', 'unblock'] },
},
required: ['number', 'block'],
...isNotEmpty('number', 'block'),
};
export const archiveChatSchema: JSONSchema7 = {
$id: v4(),
type: 'object',