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 TransferChannelOwnershipDto {
@ApiProperty({
description:
'WhatsApp ID of the account that becomes the new owner — 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. This is irreversible: once the ' +
'transfer lands, this session can no longer take the channel back.',
example: '[email protected]',
})
@ToStrictString()
@IsString()
@IsNotEmpty()
newOwnerId!: string;
}