Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';
import { ToStrictString } from '../../../common/utils/strict-boolean';
export class DemoteChannelAdminDto {
@ApiProperty({
description:
'WhatsApp ID of the admin to demote back to a subscriber — a phone number, `<phone>@c.us` ' +
'or `<lid>@lid`; a bare number is qualified for you. Anything that does not name an ' +
'individual is rejected with 400 rather than handed to WhatsApp.',
example: '[email protected]',
})
@ToStrictString()
@IsString()
@IsNotEmpty()
userId!: string;
}