Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix: add @IsOptional() to BulkMessageContentDto media fields (#193)
Carlos Cuello7fcdb5fe27ce
diff --git a/src/modules/message/dto/bulk-message.dto.ts b/src/modules/message/dto/bulk-message.dto.tsindex 5659de3dd..1fe8f68cc 100644--- a/src/modules/message/dto/bulk-message.dto.ts+++ b/src/modules/message/dto/bulk-message.dto.ts@@ -19,15 +19,19 @@ class BulkMessageContentDto {text?: string;@ApiPropertyOptional({ description: 'Image URL or base64' })+ @IsOptional()image?: { url?: string; base64?: string; mimetype?: string };@ApiPropertyOptional({ description: 'Video URL or base64' })+ @IsOptional()video?: { url?: string; base64?: string; mimetype?: string };@ApiPropertyOptional({ description: 'Audio URL or base64' })+ @IsOptional()audio?: { url?: string; base64?: string; mimetype?: string };@ApiPropertyOptional({ description: 'Document URL or base64' })+ @IsOptional()document?: { url?: string; base64?: string; mimetype?: string; filename?: string };@ApiPropertyOptional({ description: 'Caption for media messages' })